Forum Discussion
DeepakJadhav
3 years agoNew Member
Unable to write Dense Rank function
I am looking to replicate below logic in power BI but unfortunaltly not getting exact result. (case when Upper([CASE ID]) != "NON-AUDITABLE" then DENSERank(RowId(), "ASC", [TICKET NUMBER]) DENSERa...
DeepakJadhav
3 years agoNew Member
I have tried below measure but still not getting the desired result:
Calculated Column =
IF(
UPPER(YourTable[CASE ID]) <> "NON-AUDITABLE",
IF(
RANKX(
ALL(YourTable),
YourTable[TICKET NUMBER],
,
ASC,
Dense
) = 1 ||
RANKX(
ALL(YourTable),
YourTable[AUDIT BUNDLES ID],
,
ASC,
Dense
) = 1,
1,
0
),
0
)