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.
Hi all ,
I have a condional Column that returns the device names connected to a specifc customer For example
Store Name | Usages |
Device 1 | 12 |
Device 2 | 14 |
14 | |
Device 4 | 19 |
As it's a conditonal Column it has blanks in the store name Column , which wne nranking becomes an issue
Solved! Go to Solution.
Hi @JamesBurke ,
Sorry, please change the DAX into this:
Rank =
VAR _RANK =
RANKX(FILTER(ALL('Table'), 'Table'[Store Name] <> BLANK()), [Measure],,DESC,Dense)
RETURN
IF(
MAX('Table'[Store Name]) <> BLANK(),
_RANK,
BLANK()
)
The final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JamesBurke ,
Please try this DAX:
Rank =
VAR _RANK =
RANKX(ALL('Table'), [Measure],,DESC,Dense)
RETURN
IF(
MAX('Table'[Store Name]) <> BLANK(),
_RANK,
BLANK()
)
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-junyant-msft ,
Thanks for this !
unfortunately for me this filters the blank from the ranking but does not change the value in the sense that blank is hidden but it still effects the rankings.
Hi @JamesBurke ,
Sorry, please change the DAX into this:
Rank =
VAR _RANK =
RANKX(FILTER(ALL('Table'), 'Table'[Store Name] <> BLANK()), [Measure],,DESC,Dense)
RETURN
IF(
MAX('Table'[Store Name]) <> BLANK(),
_RANK,
BLANK()
)
The final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-junyant-msft ,
You are amazing , Thank you so much !!
Been stuck on this an embarssing amount of time.
Thanks again , James !!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
89 | |
86 | |
75 | |
69 | |
68 |
User | Count |
---|---|
220 | |
128 | |
117 | |
82 | |
77 |