Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

How to get Bottom M 1 excluding zeros

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.

Least COUNT =
CALCULATE(
    Audit[Sum Audits and Entries],
    FILTER(
        System_Users,
        RANKX(
            System_Users,
            Audit[Sum Audits and Entries],,
            ASC,
            DENSE
        ) = 1
    )
 ) + 0
Results
IGotTheP0werBI_0-1664226776926.png
Need it to return 31. I am new to power BI so any help is greatly appreciated.
IGotTheP0werBI_1-1664226915193.png

 

 

4 REPLIES 4
Anonymous
Not applicable

Is there a way to write something that says
IF result = 0 then 

    FILTER(
        System_Users,
        RANKX(
            System_Users,
            Audit[Sum Audits and Entries],,
            ASC,
            DENSE
        ) = 2 
Else 1 
lazurens2
Frequent Visitor

Maybe this to return positives only into the measure : 

Least COUNT =
VAR _rank = CALCULATE(
    Audit[Sum Audits and Entries],
    FILTER(
        System_Users,
        RANKX(
            System_Users,
            Audit[Sum Audits and Entries],,
            ASC,
            DENSE
        ) = 1
    )
 ) + 0
VAR Result = If ( _rank > 0 , _rank )
Return 
     Result 

Good luck !

Anonymous
Not applicable

Great thought. Unfortunately it just removes the results with zero.

IGotTheP0werBI_0-1664286348683.png

 

Anonymous
Not applicable

IGotTheP0werBI_0-1664227228701.png

Visualization Filters 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.