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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
giramswa
Helper II
Helper II

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
Memorable Member
Memorable Member

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 ?

 

 

Mahyartf

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.