The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I am trying to get the next bottom ranked value that is not zero. This is what I currently have written to return the first ranked lowest value.
Solved! Go to Solution.
Hi @Anonymous
Please try
Least COUNT =
VAR FilteredTable =
FILTER ( System_Users, [Sum Audits and Entries] <> 0 )
RETURN
CALCULATE (
Audit[Sum Audits and Entries],
FILTER (
FilteredTable,
RANKX ( FilteredTable, [Sum Audits and Entries],, ASC, DENSE ) = 1
)
) + 0
Hi @Anonymous
Please try
Least COUNT =
VAR FilteredTable =
FILTER ( System_Users, [Sum Audits and Entries] <> 0 )
RETURN
CALCULATE (
Audit[Sum Audits and Entries],
FILTER (
FilteredTable,
RANKX ( FilteredTable, [Sum Audits and Entries],, ASC, DENSE ) = 1
)
) + 0
It worked!!!!! Yay!!! Thank you v much!!
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |