cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HarrisMalik Established Member
Established Member

Percentage formatting for calculated measures in table visualization

Hi

 

I have a calculated measure which is formatted as percentage. When I use this measure in card visual it shows correctly the value with % sign (96.12%) but when it is used in table visual it only shows the decimal value (0.96)

 

Is it still not supported in table visual or there is a work around for this?

 

Regards

Harris

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Percentage formatting for calculated measures in table visualization

@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:

percent2.png

percent1.png


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

10 REPLIES 10
Super User
Super User

Re: Percentage formatting for calculated measures in table visualization

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"


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

HarrisMalik Established Member
Established Member

Re: Percentage formatting for calculated measures in table visualization

@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?

Super User
Super User

Re: Percentage formatting for calculated measures in table visualization

@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:

percent2.png

percent1.png


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

HarrisMalik Established Member
Established Member

Re: Percentage formatting for calculated measures in table visualization

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 Smiley Happy

pepach Occasional Visitor
Occasional Visitor

Re: Percentage formatting for calculated measures in table visualization

even I have the same issue.  My custom measure looses formatting. Once the desktop file is closed and re-opened, the formatting is gone.

 

any pointers? thanks

 

robofski Member
Member

Re: Percentage formatting for calculated measures in table visualization

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! 

Mixednuts Frequent Visitor
Frequent Visitor

Re: Percentage formatting for calculated measures in table visualization

Anyone notice this seems to have returned in the August 2018 release?

 

We have a measure defined with a % format on a table in a data set. When we reference that measure in a matrix in a report on the same data set it shows values as %.

 

When we connect to the dataset as a PoweBI Service data source from a separate PBIX, the measure shows as a decimal.

 

For reports published using the July 2018 version, this is not occurring.....

 

Thanks!

smibrahim Frequent Visitor
Frequent Visitor

Re: Percentage formatting for calculated measures in table visualization

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.

Anonymous
Not applicable

Re: Percentage formatting for calculated measures in table visualization

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 54 members 1,166 guests
Please welcome our newest community members: