Forum Discussion
Multiply based on currency check
- 4 years ago
Arnaud31450 can you try this measure
Measure = CALCULATE ( SUMX ( 'Price List item', VAR _0 = 'Price List item'[Range1_c] VAR _1 = CALCULATE ( MAX ( 'Table'[Fxb Rate 2022] ), TREATAS ( VALUES ( 'Price List item'[CurrencyIsoCode] ), 'Table'[Currency] ) ) RETURN _0 * _1 ) ) - 4 years ago
Arnaud31450 looks like you missed a comma after SUMX ('Price List item'
Measure =
CALCULATE (
SUMX (
'Price List item',
VAR _0 = 'Price List item'[Range1_c]
VAR _1 =
CALCULATE (
MAX ( 'Table'[Fxb Rate 2022] ),
TREATAS ( VALUES ( 'Price List item'[CurrencyIsoCode] ), 'Table'[Currency] )
)
RETURN
_0 * _1
)
)
Superb !
But I think I have problems with my Range1_c
Which would correlate also with the fact that I can't make this one work (it still give old value and do not get me a value with the selected multiplier
Arnaud31450 looks like you missed a comma after SUMX ('Price List item'
Measure =
CALCULATE (
SUMX (
'Price List item',
VAR _0 = 'Price List item'[Range1_c]
VAR _1 =
CALCULATE (
MAX ( 'Table'[Fxb Rate 2022] ),
TREATAS ( VALUES ( 'Price List item'[CurrencyIsoCode] ), 'Table'[Currency] )
)
RETURN
_0 * _1
)
)