Hello, I think I have a tricky formatting issue, so perhaps if you do not know how to solve it, you might help by involving someone who you think might know.
I want to switch between KPI and I want to have a different formatting for sales/volume and price:
Using in the formula Format( [Price], “0.00”) renders e.g. 1.71 - which is great for the US, but in Europe I need to have 1,71. Using “Fixed” gives the same result.
In the regional setting the locale is set to German (Germany). But that is only for the import.
My Windows 10 setting seems to be set correctly
Hi @Matthias , we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.
Use the forum search to discover if your query has been asked before by another member.
When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.
Use the proper category that best describes your topic
Provide as much context to a question as possible.
Include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.
@IlgarZarbaliyev Thanks a lot for your reply Ilgar! It seems that I am out of luck. The data from the query are whole numbers (volume) and decimal numbers (sales). Sales is k€ so it makes sense not to go to fixed decimal number.
My issue is that I need to format the resulting measure. And if I use for this the FORMAT function I only get the US result.
The only formatting solution I know is using the Format field in the Measure tools tab (s. example below). And that solution I can not apply because of the SWITCH function for sales, volumn and price.
Hi @ankit, thanks for your endeavors!
I do not want to change the Locale (Region Settings) - Germany is fine with me for all 3 KPI.
What I want are two digits for [Price].
I can get two digits by using FORMAT( [Price], “0.00”) or FORMAT( [Price], “Fixed”). But I get that with a dot (e.g. 1.71) instead the for me regular comma (1,71).
I hope that this clearifies the issue. And I fear that it doesn’t change the answer. It is surprising that the FORMAT formula is basically useless for many none US users. [In VBA you have to use the US formatting syntax too, but the results are rendered in the correct regional setting.]
Thanks @Heather!
You got it, and the reason I can’t change it is “For new Power BI Desktop models”.
So for existing reports I won’t be able to use FORMAT to get the desired formatting. But with all new reports, it should work for me (but then probably my US colleagues will see comma instead of dot).
That answers also why in contrast to FORMAT the US syntax used in the ribbon (s. picture) worked fine: