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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors