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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors