Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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])
DENSERank(RowId(), "ASC", [AUDIT BUNDLES ID])
end)=1
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
)
DENSE_RANK is not a built-in function in Power BI. However, you can use RANKX instead
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |