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 am new to Power BI desktop and I got the requirement to rank different toys based on their category. In my requirement, if the toy belongs to category A, then I need to rank them in ascending order. If the toy does not fall in category A, I need to rank them in descending order.
Solved! Go to Solution.
@nagavineela , Try a measure like
rankx(filter(allselected(Table[Category], Table[Item]), Table[Category]= "Category A"),[measure],,asc) +
rankx(filter(allselected(Table[Category], Table[Item]), Table[Category]= max(Table[Category]) && Table[Category]<> "Category A"),[measure],,asc)
@nagavineela , Try a measure like
rankx(filter(allselected(Table[Category], Table[Item]), Table[Category]= "Category A"),[measure],,asc) +
rankx(filter(allselected(Table[Category], Table[Item]), Table[Category]= max(Table[Category]) && Table[Category]<> "Category A"),[measure],,asc)
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |