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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
GSB0302
New Member

FInd MIN of data set, excluding negatives.

I am trying to find the minimum value of a data set excluding negative values. I am sure this is fairly simplistic and I am missing something. But there are credit entries within this data that populate as negative values. As shown in the picture below.

 

GSB0302_0-1707942621043.png

Ideally I want it to ignore these values and just pull in the data that is the lowest value above 0. Pulling in this 6074.85 that I have highlighted.

GSB0302_1-1707942689481.png

Is there a way to do this? Or do I need to reconfigure my data and pull it in without the negatives?

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

You can use something similar to the following measure:

Min (excluding -ve) = CALCULATE(MIN(Table[Customer Sales USD]), Table[Customer Sales USD]) > 0)

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

You can use something similar to the following measure:

Min (excluding -ve) = CALCULATE(MIN(Table[Customer Sales USD]), Table[Customer Sales USD]) > 0)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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