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.
Hi!
I am trying to do a matrix that contains the years 2017, 2018 and 2019. It is sorting the years in this order (2017, 2018 and 2019). I want the order to be 2019, 2018 and 2017.
I have used the function of Rank - as suggested in a similar post- to create an additional column in my table with the Rank. The same succesusfuly has put the Rank as 1 for 2019 2 for 2018 and 3 for 2017.
If I select the column Rank in my matrix, yes I can see the years ordered as 1, 2 and 3. The catch is the name of the column is 1,2 and 3, but I would still like this to be 2019, 2018, and 2017.
Is there a way to ensure the order is 2019, 2018 and 2017, but that these are the labels in the Column?
The help is much appreciated.
Solved! Go to Solution.
Hi @MS3 ,
We can try to create two calculated column to meet your requirement:
Year-Shown = [Year]
Year-Rank = RANKX('Table',[Year],,DESC,Dense)
Then we can make [Year-Shown] Sort by the [Year-Rank] column, and use [Year-Shown] column inside the matrix visual:
Best regards,
Hi @MS3 ,
We can try to create two calculated column to meet your requirement:
Year-Shown = [Year]
Year-Rank = RANKX('Table',[Year],,DESC,Dense)
Then we can make [Year-Shown] Sort by the [Year-Rank] column, and use [Year-Shown] column inside the matrix visual:
Best regards,
Make Rank as sort column.
Appreciate your Kudos.
Have you tried a Sort By column?
Yes, I did this. So it sorts correctly, but my headers are still the Rank position as opossed to the Year itself (e.g. 2019)
Hi @MS3 ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,
@MS3 , If possible please share a sample pbix file after removing sensitive information.Thanks.
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |