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
giroldoale
Helper I
Helper I

SUM of a Measures that divides

Hi,

I have a Measures providing me the median minutes per Single Item producted--> 

@MinRealPz = CALCULATE(MEDIAN(Timbrature[MinLAvPz]))
I have a table vizualizing the Measures @MinRealPz for every step of production.
I need to write a Measures providing me the SUM of the @MinRealPz
--> I try to do the script-->CALCULATE(SUM([@MinRealPz]))
But it doesen't work, seems like I can't insert into SUM a Measure.
Can you help me?
I have to obtain the sum of the column in azure..
 
MinSum.png
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@giroldoale 

Try somthing like this.  It will build a list of the values in the Fase column, add the result of the measure and sum up the values.

Median Sum = SUMX ( VALUES ( 'Timbrature'[Fase] ), [@MinRealPz] )

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@giroldoale 

Sum in measures only calculates the current row, you need set the condition to all(table).


Measure = CALCULATE(SUM([@MinRealPz]), All(Table))

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

jdbuchanan71
Super User
Super User

@giroldoale 

Try somthing like this.  It will build a list of the values in the Fase column, add the result of the measure and sum up the values.

Median Sum = SUMX ( VALUES ( 'Timbrature'[Fase] ), [@MinRealPz] )

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.