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
lbendlin
5 years agoSuper User
Your SWITCH() statement needs to test for Toronto, not for CAD.