This is my first post and a newbie in power BI. I apologize in advance if in case I’ve posted incorrectly or didn’t provide enough details.
I need help on how to combine different columns into the query.
The columns I have are …
Country Date
Afghanistan 08/03/2021
and I want to combine it in one column which will have country+month number+year which looks like this Afghanistan12017. Can you guide me on how to do this?
Just one question about your requirement - is it sufficient to have single digit months occupy one space and double digit months two spaces, or would you always want the month number to occupy the two spaces after the couhntry? (e.g., Afghanistan82021 vs. Afghanistan082021). The latter requires just one slight tweak, but I often find in these merged fields having each component consistently occupy the same space in the string is very useful.
Thanks MK3010! I tried it and it works. But I’ve noticed that there are blank Countries in my dataset, what would be the formula if I want the custom column to show blank countries as Blank+MonthNum+Year?
It’s great to know that you are making progress with your query @BM_Girlracer. Please don’t forget if your question has been answered within the forum it is important to mark your thread as ‘solved’. Also, we’ve recently launched the Enterprise DNA Forum User Experience Survey, please feel free to answer it and give your insights on how we can further improve the Support forum. Thanks!