cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
giramswa
Helper I
Helper I

Calculated Measure not showing any values on Stacked Bar or Line chart

Hi,

 

I have a measure which calculates compliance percentage. It shows value correctly when placed on table visual. However When I put the same measure on a bar or Line chart, it does not display any value.

 

giramswa_1-1660711607760.png

 

I have verifid that DataType for this measure is Decimal Number - 

giramswa_2-1660711677890.png

How to fix this?

1 ACCEPTED SOLUTION

@giramswa 

 Because this is a string type data. Just delete & "%" part of the code as well as the *100 then you can format the measure by selecting percentage data type 

View solution in original post

4 REPLIES 4
MahyarTF
Solution Sage
Solution Sage

Hi,

I tried to create some samples for myself and create the measure of those, it seems it is working properly :

MahyarTF_0-1660713674619.png

 

Would you please share some samples and also your measure code here ?

 

 

The measure code below:

Process Compliance % = ROUND( DIVIDE( SUMX(FILTER(Report_Table, Report_Table[PR_COMPLIANCE_TOTAL_max]=1), Report_Table[PR Compliant?]), SUMX(FILTER(Report_Table, Report_Table[PR_COMPLIANCE_TOTAL_max]=1), Report_Table[PR_COMPLIANCE_TOTAL_max]))*100,2) &" %"

@giramswa 

 Because this is a string type data. Just delete & "%" part of the code as well as the *100 then you can format the measure by selecting percentage data type 

Thank you! This resolved the issue.

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

Check it Out!

Mark your calendars and join us on Thursday, September 29 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors