Forum Discussion
DiDiliz
1 year agoFrequent Visitor
Add multiple selectedvalues
I am trying to create a measure which will add up the separate values which are selected in the slicer. However, because each value has a different calculation, I don't want it to add up the whole s...
- 1 year ago
Hi DiDiliz
Use the below dax:
Test Measure = SUMX( VALUES('TABLE1'[Week Commencing].[Month]) CALCULATE( SUM('TABLE2'[Hours]) * AVERAGE('TABLE1'[Budget %]), FILTER( 'TABLE1', 'TABLE1'[Week Commencing].[Month] = EARLIER('TABLE1'[Week Commencing].[Month]) ) ) )
Angith_Nair
1 year agoContinued Contributor
Hi DiDiliz
Use the below dax:
Test Measure =
SUMX(
VALUES('TABLE1'[Week Commencing].[Month])
CALCULATE(
SUM('TABLE2'[Hours]) * AVERAGE('TABLE1'[Budget %]),
FILTER(
'TABLE1',
'TABLE1'[Week Commencing].[Month] = EARLIER('TABLE1'[Week Commencing].[Month])
)
)
)DiDiliz
1 year agoFrequent Visitor
That's done exactly what I was after. Thank you so much.