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 was working on a pbi report where data source is Cube. When i create a chart and sort by month and year column(Data format is string) it not coming correctly (As attached). can we create a meaure on PBI for sorting this
Solved! Go to Solution.
I have a column which gives me the month number and then i create another column and use the below to sort the month & year
Proud to be a Super User!
@Anonymous , Only two M
FORMAT(FactPortfolio[DateKey],"YYYYmm")
And made this sort column no need to use in visual. In visual you can use your old column
refer
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
I have a column which gives me the month number and then i create another column and use the below to sort the month & year
Proud to be a Super User!
@Anonymous , No you need column. Please check if creation on the column is allowed
If you have month year in the format
Month Year = FORMAT([Date],"mmm-yyyy")
you need a sort column like this
Month Year sort = FORMAT([Date],"yyyymm")
follow steps
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
I tried to chnages the format but still it not resolved.
FORMAT(FactPortfolio[DateKey],YYYYmmm)
Let me know if you try my method @Anonymous
Proud to be a Super User!
I tried this way aswell, Same result. Thanks A lot . Really helped me
@Anonymous Happy to help.
Proud to be a Super User!
@Anonymous , Only two M
FORMAT(FactPortfolio[DateKey],"YYYYmm")
And made this sort column no need to use in visual. In visual you can use your old column
refer
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |