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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mtrevisiol
Helper IV
Helper IV

Difference between columns with a mesure

Hi everyone,

I've got a table with four columns: ID, Min, Value and Max (they represent some values recorded by a production machine):

mtrevisiol_0-1627369862864.png

 

My intention is to create two measures:

- the first one would be the difference between Max and Val

- the second is the difference between Val and Min

and they are calculated for each row of the table

 

How can I create them? Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mtrevisiol , new measure can be like

M1= Sumx(Table, Table[Max] -Table[Min])

 

M2= Sumx(Table, Table[value] -Table[Min])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mtrevisiol , new measure can be like

M1= Sumx(Table, Table[Max] -Table[Min])

 

M2= Sumx(Table, Table[value] -Table[Min])

Many thanks @amitchandak !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors