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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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