Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a month column in MMM-YY format over two years (Month = FORMAT('Actual (2)'[Date].[Date],"mmm-yy") and I have sorted by another column called FiscalMonth (FiscalMonth = (If( Month([Date]) >= 7 , Month([Date]) - 6,Month([Date]) + 6 )), which represents our fiscal calendar. When I create a viz though I get the months from both years in order and not the months from the first year first and then the second year's months.
Any ideas would be appreciated
Solved! Go to Solution.
Your sort column doesn't incorporate the year, so you need to do that. You could consider the approach in this article with custom date strings - https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/
Or you can make another FORMAT column with YYYYMM to get the yearmonths in order, and use this new column as your sort column.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Your sort column doesn't incorporate the year, so you need to do that. You could consider the approach in this article with custom date strings - https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/
Or you can make another FORMAT column with YYYYMM to get the yearmonths in order, and use this new column as your sort column.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
How can iget like below screen shot
Thank you for the help - it worked!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |