Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello Folks,
I have to show first 3 letters of every months in graphs
Have created separate columns but when I add in hierarchy month order is not coming correct like for 2020 and 2021 jan showing at first 2020 jan then 2021 jan then 2020 feb, 2021 feb like this
but have to show 2020 Jan, 2020 Feb.........2021 Jan,2021 Feb like this.
below is system defined hierarchy.
Need help please
Solved! Go to Solution.
@Anonymous
You may create following column to replace the original date hierarchy:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
You may create following column to replace the original date hierarchy:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
No way this is an acceptable answer, that just turns it into a text string that doesn't sort by date anymore. In the visual above they had to have manually sorted by descending, and then stopped at February.
Hi,
I used the Calcualted Column and it showing the expected Month Format, but I couldn't achieve the X-Axis format as shown in the image.
Do we have any option to achieve the X-Axis
Thanks in Advance,
Mani
You need to add another column to your date table that is in this format:
MonthName | SortCode |
Jan 2020 | 202001 |
Feb 2020 | 202002 |
Mar 2020 | 202003 |
Jan 2021 |
202101 |
Feb 2021 |
202102 |
Etc. I've left off a lot of data obviously. The following formula as a Custom Column in Power Query will do this:
Date.Year([Date]) * 100 + Date.Month([Date])
I have a date table here with this kind of info - Creating a Dynamic Date Table in Power Query
You then sort the MonthName column by the SortCode above. This article has more details on that procedure.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.