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:
I'm seeing the same thing for the first time too. The only thing different for me was that I connected to an existing dataset from the Power BI service in Power BI desktop and added a couple of measures. These are now losing format, both a currency and a percentage.
Very odd!
You should redo this in VIsualization window. (Not sure why PowerBI is not reflicting it from Dataset to Visualization)
After selecting the " Specific Column" under "Fields" pane, Modelling --> Datatype/Format.
Hope it resolves.
- Anonymous7 years agoNot applicable
I have both numbers and percentage in the same column, for example:
0.21 I would like to show as 21% and 5.97 is number. I would like to represent this in graph.
- AUS20297 years agoRegular VisitorI've used below,it will give you number as number, % as %.= if([Value]<-1,[Value],if([Value]<1,FORMAT([Value],"0.0%"),[Value]))However, no further caluclation of this % will be allowed. ( error eg: PBI cannot perform simple calc such as 54.5% - 50.1%)