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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mtrevisiol
Helper V
Helper V

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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