Forum Discussion
Floriankx
Solution Sage
8 years agoRankx filter empty cells
Hello together, I'm struggling with creating rank for projects when project cell is empty. Project order value OrderRank Project 1 100 $10.000 1 101 $250.000 5 Project ...
- 8 years ago
Try this MEASURE
ProjectLevelRank = IF ( NOT ( SELECTEDVALUE ( fOrders[Project] ) = BLANK () ), RANKX ( FILTER ( ALLSELECTED ( fOrders[Project] ), fOrders[Project] <> BLANK () ), CALCULATE ( SUM ( fOrders[value] ) ), , ASC, DENSE ) )
Zubair_Muhammad
Community Champion
8 years ago
Try this MEASURE
ProjectLevelRank =
IF (
NOT ( SELECTEDVALUE ( fOrders[Project] ) = BLANK () ),
RANKX (
FILTER ( ALLSELECTED ( fOrders[Project] ), fOrders[Project] <> BLANK () ),
CALCULATE ( SUM ( fOrders[value] ) ),
,
ASC,
DENSE
)
)Floriankx
Solution Sage
8 years agoHello Zubair_Muhammad,
Amazing! It works, I would never have figured this out by myself.
unfortunately SELECTEDVALUE isn't available to me, so I had to rephrase it with IF(HASONEVALUE(<column>);Values(<column))
Maybe I will find the time to understand this formula entirely.
Best regards.