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
barron2020
Frequent Visitor

Minimum of a calculated column

Hi Community,

 

I have a data set that looks like this:

 

SKU - Weight in Kg 

SKU1 - 50

SKU2 - 100

SKU3 - 150

SKU4 - 200

 

I have created a filter to select only weights between 95 and 160.

So, SKU2 and SKU 3 will be returned.

 

Now, I want to create a measured column that will find out the minimum of weight and find out the difference in weight.

For example, It should look like this

SKU - Weight - New Measure Column

SKU 2 - 100 - 100-100=0

SKU 3  - 150 - 150-100=50

 

Currently, when I do the measure, It is giving this result

SKU - Weight - New Measure Column

SKU 2 - 100 - 100-100=0

SKU 3  - 150 - 150-150=0

 

Measure column = min(Weight)

 

Please help

1 ACCEPTED SOLUTION

Sorry, I was a bit off:

 

Measure 5 = MAX([Weight]) - MINX(ALLSELECTED('Table 8'),[Weight])

 

See Page 5 and Table 8 of attached.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

You want a MINX coupled with an ALLEXCEPT('Table'[SKU])



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry, I was a bit off:

 

Measure 5 = MAX([Weight]) - MINX(ALLSELECTED('Table 8'),[Weight])

 

See Page 5 and Table 8 of attached.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

It worked. Thanks 

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.