Forum Discussion

HarrisMalik's avatar
HarrisMalik
Icon for Continued Contributor rankContinued Contributor
10 years ago
Solved

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 on...
  • Greg_Deckler's avatar
    Greg_Deckler
    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: