The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I have a dataset which is in "Year Month" column combination such as “2017-07”.
I have created 2 calculated columns and used Year and Month DAX functions. It works fine.
But when I use Month Name and use Format function the date I get same information ("2017-07") for that new column as shown.
How could I get a Month Name using DAX?
Any help would be highly appreciated.
Solved! Go to Solution.
Thanks @thiagopinho for your reply ...
My issue was this actually
Dataset has string value “Year-Month”
So I used CONCATENATE, YEAR, MONTH and DATEVALUE DAX functions to achieve this
Thanks!
Hey Sandy, 🙂
What did you use to create that "Month Name" column??
to get the month names you may do something like this,
Transform that "Month Name" column to Date type,
To transform to Date type
and then extract the month name of it.
Date>Month>Name of Month
Thanks @thiagopinho for your reply ...
My issue was this actually
Dataset has string value “Year-Month”
So I used CONCATENATE, YEAR, MONTH and DATEVALUE DAX functions to achieve this
Thanks!
@Anonymous,
You have solved this issue, right? If so, you can accept your reply as answer to close this thread. You can also create Month Name column using DAX below.
MonthName = SWITCH(Table[Month], 1,"Jan", 2,"Feb", 3,"Mar", 4,"Apr", 5,"May", 6,"Jun", 7,"Jul", 8,"Aug", 9,"Sep", 10,"Oct", 11,"Nov", 12,"Dec" )
Regards,
Lydia
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
123 | |
111 | |
78 | |
74 |