Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Dear PBI enthusiasts!
I am relatively new to PowerBI and struggling through this one scenario. Use case -
Thank you in advance!
Hi @DivyaReddy
Thanks for reaching out to us.
I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.
If you need more help, please let me know.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
In the RANKX function, don't use the whole table as the first argument but FILTER it by the cells/entries that don't have BLANKs. That's also simple. And if the cell is BLANK, just don't calculate the rank. Something like:
[Ranking] =
var AllItemsNonBlank =
filter(
// Due to ALLSELECTED this is a relatve
// ranking. If you want an absolute ranking,
// use ALL( T[Item] ) instead.
allselected( T[Item] ),
not isblank( [your measure to rank with] )
)
var Result =
if( not isblank( [your measure to rank with] ),
rankx(
AllItemsNonBlank,
[your measure to rank with]
)
)
return
Result
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
43 | |
21 | |
21 | |
14 |
User | Count |
---|---|
125 | |
42 | |
39 | |
28 | |
24 |