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 have the following matrix and I want a specific column order:
the problem is that for product=00000001 there are three versions(version1, version2,version3) but if I select product=00000008 it might be twenty versions(version1.... version20). There are more that one hundred products and I don't know how many versions each of them have.Version1 is always the oldest and the last version is the newest one. How can I sort the columns so it shows from newest version?(in above screenshot I want to sort so it shows version3, version2,version1. The first column, Production is freezed)
Solved! Go to Solution.
@Anonymous , You might have to on this column or create one more column and do on that. As after this column will sort desc.
Version New = [Version] /// New colum which will sort desc
Version New Rank = Rankx(All(Table),[Version],,desc,Dense) // Do not use Verison New
Now mark the Version New Rank as sort column of Version New
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
In case of any issue with rank refer
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
@Anonymous , You might have to on this column or create one more column and do on that. As after this column will sort desc.
Version New = [Version] /// New colum which will sort desc
Version New Rank = Rankx(All(Table),[Version],,desc,Dense) // Do not use Verison New
Now mark the Version New Rank as sort column of Version New
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
In case of any issue with rank refer
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |