Forum Discussion
Percentage formatting for calculated measures in table visualization
- 10 years ago
HarrisMalik, OK, I just went back and confirmed this, I was able to put both a colum and a measure into a table (not multi-row card or card) and they both worked and had % displayed versus the decimal. Are you on the December update of Power BI? Are there any language packs involved? You could always send a frowny face to support from the Desktop and ask them what is going on. Something is definitely off because I cannot replicate your issue.
So, not sure if this will help, but my formula for Winning Percentage, a caculated measure is:
Winning Percentage = SUM([Wins]) / (SUM([Wins])+SUM([Losses])+SUM([Ties]))
I clicked the measure, set the % sign formatting and added it to a table and it worked fine. I can't think of anything special or tricky that I did to get it to work and I can't think of anything that you might have switched on in terms of table properties, etc. that would cause it to break like that.
Here are the screen shots of my setup and example of it working:
In Desktop, go into your model, on the Modeling tab, choose your column and click the "%" sign in Formatting area. I am guessing you used the format paintbrush in your card or a card has a different default. I use % in my tables all the time, so it is definitely supported.
Edit: Come to think of it, I have an example in my latest blog post Dates Prior to 1900, the first graphic shows a table where the last column is "Winning Percentage"
Greg_Deckler The format of the measure is already percentage having % sign selected and it shows correct percentage with sign in card or multi-row card visuals. The problem is with Table visual.
Refereing to your blog post, are you using table visual or multi-row card visual in your example?
- Greg_Deckler10 years ago
Community Champion
HarrisMalik, OK, I just went back and confirmed this, I was able to put both a colum and a measure into a table (not multi-row card or card) and they both worked and had % displayed versus the decimal. Are you on the December update of Power BI? Are there any language packs involved? You could always send a frowny face to support from the Desktop and ask them what is going on. Something is definitely off because I cannot replicate your issue.
So, not sure if this will help, but my formula for Winning Percentage, a caculated measure is:
Winning Percentage = SUM([Wins]) / (SUM([Wins])+SUM([Losses])+SUM([Ties]))
I clicked the measure, set the % sign formatting and added it to a table and it worked fine. I can't think of anything special or tricky that I did to get it to work and I can't think of anything that you might have switched on in terms of table properties, etc. that would cause it to break like that.
Here are the screen shots of my setup and example of it working:
- HarrisMalik10 years ago
Continued Contributor
Hi
I have exactly the same setup as you mentioned in your example. Yes I have december 2015 update. I think something is not working as expected. I will send a frowny to MS guys and see what they say.
Thanks for your time.
Regards
Harris
Edit: you know what, I have droped the whole table from report and recreated it, the problem solved :)