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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bernate
Helper III
Helper III

Exclude 0 from MINX Result

Hello all, 

 

I'm trying to get the lowest sum sales value of all days in a month. So in the example below I want to display 5,759 as the value in a card, not 0.

bernate_0-1702509173508.png

 

Here is the DAX formula I'm using. It returns the correct result since 0 is the min value, but is there some way I can exclude 0 from the calculation so it jumps to the next minimum value (5,759)?

 

=MINX(SUMMARIZE('Sales Data','DateTable'[CalendarDt],"Total Sales",SUM('Sales Data'[Daily Sales])),[Total Sales])
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

= MINX( FILTER(
   SUMMARIZE('Sales Data','DateTable'[CalendarDt],"Total Sales",SUM('Sales Data'[Daily Sales])),[Total Sales]>0)
,[Total Sales])

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

Measure = MINX('DateTable',[Total Sales])

If it does not work, then share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ahmedx
Super User
Super User

pls try this

= MINX( FILTER(
   SUMMARIZE('Sales Data','DateTable'[CalendarDt],"Total Sales",SUM('Sales Data'[Daily Sales])),[Total Sales]>0)
,[Total Sales])

Thank you so much, I knew I was overlooking something and I completely forgot about the filter function. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.