Forum Discussion
Switch between Currency and Number
- 3 years ago
joshua1990
Sure,
Here is an example file
Hi ,
I would do this with a calculation group:
Expression:selectedmeasure()
Format string expression:
IF(SELECTEDVALUE('Selection for V/C'[value]="Currency", "$ #,##K", selectedmeasureformatstring())
- joshua19903 years ago
Post Prodigy
ValtteriN THanks a lot! Any workourant without Tabular Editor? I am not allowed to use this software.
- ValtteriN3 years ago
Community Champion
joshua1990 you can also manage calculation groups in Visual studio or after the upcoming release announced at MS Build calculation groups will be available in Power BI desktop. I think this was scheduled for June's release.
- joshua19903 years ago
Post Prodigy
ValtteriN : Thanks a lot! Could you please share the Power BI File as well?
- ValtteriN3 years ago
Community Champion
joshua1990
Sure,
Here is an example file- joshua19903 years ago
Post Prodigy
ValtteriN : Thanks a lot for providing this. It seems like the same column is display once in units and once in dollars, right?
But what I need is something the also multiplies the units into a dollar value. I have a column with units, I have a column with the price per unit and then if needed I have a calculated column with the total dollars (units x price)