Forum Discussion
Local or USD selection
- 2 years ago
I used the following formula linking to the parameter
Sales Dynamic =SWITCH(SELECTEDVALUE(prmSalesCurrency[prmSalesCurrency Fields]),"'Dataset Measures'[Sales]",sum('Dataset'[Sales]),"'Dataset Measures'[Sales USD]",sum('Dataset'[Sales_USD]))
In that dataset i also have YTD sales and Budget. I want the parameter to cover all of those options.
You may have wanted to mention this earlier. In that case I would recommend you invest in a proper data model. Add a Calendar table, as well as a FX table (assuming you have monthly FX rates?) . Then you can use a slicer with the currencies based on the FX table, and for all your measures (Sales, Budget, YTD) you can then compute the right value based on the chosen currnecy and time range.
So its not possible to use the same way to use the same setup as in my file and make it possible to switch between the Local or USD fields?
Case [Currency Local/USD]
when "Local" then [Sales]
when "USD" then [Sales_USD]
End
- lbendlin2 years agoSuper User
not like this - you would have to include six choices rather than two.
- local sales
- USD sales
- local budget
- USD budget
- local YTD
- USD YTD