Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Unable to add % Measure as a value in a clustered column chart

Hello,

I am a beginer user of Power BI and hoping that anyone can give me some insights to solve one of the issues that I am currently facing!

 

I am developing a HR dashboard and would like to create a bar graph showing % of employees who are over 52 years old by business unit to see a retirement risk for the organisation. I have created a measure of a proportion of employees who are over 52 years old as follows.

 

% Retiring >52 = FORMAT(CALCULATE(SUM('Employee Profile'[Headcount]),'Employee Profile'[Retiring (>52)] IN { "Over 52" })

/ SUM('Employee Profile'[Headcount]),"Percent")

 

And then I tried to use the measure in a clustered column chart, however, it does not let me add the measure as a value (but as a tooltip).

 

Your help and advice would be appreciated.

 

Regards,

1 ACCEPTED SOLUTION
mattneil
Frequent Visitor

Hi @Anonymous 

That's happening because using the FORMAT() function returns a text string, which it why the visual won't accept it in the value field. 

To format as a percentage, select the measure then in the ribbon menu go to the Modeling tab and change the Format to Percentage

2019-09-13_8-29-11.png

Cheers,

Matt 

View solution in original post

2 REPLIES 2
mattneil
Frequent Visitor

Hi @Anonymous 

That's happening because using the FORMAT() function returns a text string, which it why the visual won't accept it in the value field. 

To format as a percentage, select the measure then in the ribbon menu go to the Modeling tab and change the Format to Percentage

2019-09-13_8-29-11.png

Cheers,

Matt 

Anonymous
Not applicable

Thank you so much - it worked! Very much appreciated.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors