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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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