Forum Discussion
Fro88er
5 years agoHelper IV
Apply Exchange Rates to Local Currency button
I have request to add a simple Currency Button (Local/USD). When USD is selected it applies the respected currency rate. I have built a Currency Table (disconnected). The Temp Revenue (selected curr...
- Anonymous5 years ago
Hi Fro88er ,
Please update the formula of measure as below:
Temp Revenue (selected currency) = VAR _selcurrency = SELECTEDVALUE ( 'DimCurrency'[Currency] ) VAR _currate = CALCULATE ( MAX ( 'DimCurrency'[Currency Rate] ), 'DimCurrency'[Currency] = _selcurrency ) RETURN IF ( _selcurrency = "CAD" && MAX ( 'Fact1Staff Consolidated GP'[Region] ) = "Toronto", [Temp Revenue (local)] * _currate, [Temp Revenue (local)] )Best Regards
Rena
Anonymous
5 years agoNot applicable
Hi Fro88er ,
Please update the formula of measure as below:
Temp Revenue (selected currency) =
VAR _selcurrency =
SELECTEDVALUE ( 'DimCurrency'[Currency] )
VAR _currate =
CALCULATE (
MAX ( 'DimCurrency'[Currency Rate] ),
'DimCurrency'[Currency] = _selcurrency
)
RETURN
IF (
_selcurrency = "CAD"
&& MAX ( 'Fact1Staff Consolidated GP'[Region] ) = "Toronto",
[Temp Revenue (local)] * _currate,
[Temp Revenue (local)]
)Best Regards
Rena
Fro88er
5 years agoHelper IV
Yes, this worked perfectly! I will rename my buttons to better reflect what is going on! Thank you so much, the timing could not be better!