Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I'm trying to rank my items in the first 2 columns by the result position, so i can get a count of how many times an item in the query column was found in results position1, 2, etc.
Very easy in excel, very challenging for me in PowerBi. Can some help me with finding a solution to this? The query column is an item from a slicer that the user chooses.
In the example below, the detail is on the left two columns and the results are on the right if a user chooses Item1, Item2, etc.
Any help is appreciated.
Thank you
Steven
Solved! Go to Solution.
Thanks very much. It worked and I was able to adapt it for other measures
Please accept my solution if it helps you
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Item Rank =
RANKX(
FILTER(
YourTableName,
YourTableName[Query Column] = SELECTEDVALUE(QuerySlicer[Item])
),
YourTableName[Result Position]
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Hi, and thanks for your help. When a user chooses something, that's pretty easy. But what if you just want to rank values in a table, something like this?
Is there a way to do this without having to use the SUMMARIZE function, to create a new table?
Thanks very much. It worked and I was able to adapt it for other measures
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |