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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table with that contains a columns for Part Number, Grade (lower number = better), and Serial Number. I would like to Rank each serialized version per part part number. Then to be able to show the best serial number for each part number. In the screen shot below I manually filter the Best Parts by grade to show what I am looking for.
Solved! Go to Solution.
Hi , @rayhull
According to your description, you want to filter the Best Parts by grade.
Here are the steps you can refer to :
(1)My test data is the same as yours.
(2)We can create a measure:
Measure =
var _curPart = MAX('Table'[Part])
return
RANKX(FILTER( ALL('Table'),'Table'[Part]=_curPart) , CALCULATE( SUM('Table'[grade])),,ASC,Dense)
Then we can test in the visual:
(3)Then we can configure the measure on the "Filter on this viusal", and we can meet your need:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @rayhull
According to your description, you want to filter the Best Parts by grade.
Here are the steps you can refer to :
(1)My test data is the same as yours.
(2)We can create a measure:
Measure =
var _curPart = MAX('Table'[Part])
return
RANKX(FILTER( ALL('Table'),'Table'[Part]=_curPart) , CALCULATE( SUM('Table'[grade])),,ASC,Dense)
Then we can test in the visual:
(3)Then we can configure the measure on the "Filter on this viusal", and we can meet your need:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!