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.
I'm using a matrix in a report and is based on year and month and it shows month = April, August,.. how can I change it to show month chronologically? I'm using tabular and a seperate view in SQL server for date/time.
Hi @Anonymous ,
This should help:
https://community.powerbi.com/t5/Desktop/not-able-to-sort-by-months-in-chronological-order/m-p/61035
Thank you @tkirilov for your answer.
The solution works if I create it in repport, but as I mentioned I'm using an SQL view for date. I created a calculated column with the formula in solution in dimension table in tabular:
=SWITCH([MonthNumber],
1,"Jan",
2,"Feb",
3,"Mar",
4,"Apr",
5,"May",
6,"Jun",
7,"Jul",
8,"Aug",
9,"Sep",
10,"Oct",
11,"Nov",
12,"Dec"
)
but when I use this column i report it shows nothing in matrix. If I missing something?
@Anonymous ,
Please refer the below Link to get your answer:
https://docs.microsoft.com/en-us/archive/blogs/samlester/sorting-by-month-names-in-power-bi
Don't forget to give thumbs up 👍and accept this as a solution if it helped you.
I tried with switch() and created a new column in dimension table i tabular(it shows correctly there). But it shows data in one column without any header . For example if I have values for Dec and Apr, it shows all data in one column and doesn't show header for month in report.
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |