Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi everyone,
I have a salary table (column "prov") of two countries (Slovakia = "SK", Czechia = "CZ"):
I want to show both regions in one bar chart with different format currency:
If Entita.nazov = SK, then I want to show currency € (EUR), otherwise I want to show curriency Kč (CZK) = Entita.nazov (CZ).
Is there any possibility to do that? So if I filter in "Entita.nazov" = SK I will see the sum of prov in format currency €, and if I choose "Entita.nazov" = CZ I will see the sum of prov in format currency Kč?
Thanks for all answers.
Solved! Go to Solution.
Hi,
thank you for the answer. It works, but as you say it works only in table because of the type format "text". I found a video on youtube, how to fix it with calculation group in Tabular Editor - https://www.youtube.com/watch?v=-REAQDqdz0A.
Hi,
thank you for the answer. It works, but as you say it works only in table because of the type format "text". I found a video on youtube, how to fix it with calculation group in Tabular Editor - https://www.youtube.com/watch?v=-REAQDqdz0A.
Hi @LuciaZel
You can use format() function, but it will return the value as the text type, so it cannot be put to clustered column.
You can put it to the table visual.
You can refer to the following measure.
Measure = IF(SELECTEDVALUE('Table'[country])="SK",FORMAT(SUM('Table'[prov]),"€#,##0"),IF(SELECTEDVALUE('Table'[country])="CZ",FORMAT(SUM('Table'[prov]),"Kč#,##0")))
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2023 Power BI update to learn about new features.