Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
We are facing a challenge applying dynamically the right currency symbol based on the currency field from the table.
Using API, we are preparing the following table with information about purchased products, where the key fields are:
Where row_total is actually the purchased amount per order, it is decimal with enabled summarization.
The goal is to build a summarized report with the top 10 purchased products based on the row_total
Challenges:
currencyFormat = var cur = CALCULATE(MIN(OrderItem[currency])) return switch(cur, "GBP","£#,##0.#", "EUR", "€#,##0.#", "$#,##0.#");
FORMATED_ROW_TOTAL = FORMAT(row_total,currencyFormat )
In our case, the ideal scenario is to modify the row_total field "custom format" settings using DAX but seems it impossible.
Or, using Parameters to define the current currency, which also seems also not possible.
One of the ideas was to prepare a separate measured table with already summarized and grouped data per product.
But it sounds crazy and complex.
Appreciate any reasonable ideas.
Solved! Go to Solution.
You could try using a calculation group (see article below). A calculation group gives you more control over formatting and doesn't convert the data type to text.
https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/
Proud to be a Super User!
You could try using a calculation group (see article below). A calculation group gives you more control over formatting and doesn't convert the data type to text.
https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/
Proud to be a Super User!
This solution works perfectly for my case.
Not the ideal, but completely different level working with Power BI
Some useful link who wants to learn more:
https://learn.microsoft.com/en-us/training/modules/create-calculation-groups/5-lab
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |