Forum Discussion
GellaiTamas
8 years agoHelper I
DAX_Filtered division within one column
Hi, I have many columns in an SQL DB table and these 2 among them: [Property] and [Value]. [Property] has ~30 different items. How can I divide only 2 specific properties? I'm not quite sure ho...
- 8 years ago
Hi Tamás,
We can evaluate the totals separately. Try this formula please.
InflationPerCostBase = VAR AOPInflation = CALCULATE ( SUM ( 'Report1 (2)'[Value] ); 'Report1 (2)'[Property] = "AOP Inflation" ) VAR AOPCostBase = CALCULATE ( SUM ( 'Report1 (2)'[Value] ); 'Report1 (2)'[Property] = "AOP Cost Base" ) RETURN DIVIDE ( Inflation; CostBase; 0 )Best Regards!
Dale
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Tamás,
We can evaluate the totals separately. Try this formula please.
InflationPerCostBase =
VAR AOPInflation =
CALCULATE (
SUM ( 'Report1 (2)'[Value] );
'Report1 (2)'[Property] = "AOP Inflation"
)
VAR AOPCostBase =
CALCULATE (
SUM ( 'Report1 (2)'[Value] );
'Report1 (2)'[Property] = "AOP Cost Base"
)
RETURN
DIVIDE ( Inflation; CostBase; 0 )Best Regards!
Dale
- GellaiTamas8 years agoHelper I