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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
HarperCash
Regular Visitor

20% of a total

I'm using a fuel gauge to show completion of chats vs total initiated calculated using measures.

I want to add a dynamic target of 20% but can't figure out how to do it, I tried writing a measure: 

20COM = SUM('KPI'[completed])/20*100 but when I try to add it as the target to my fuel gauge I get the below error: 


MdxScript(Model) (24, 36) Calculation error in measure 'Measures table'[20COM]: The function SUM cannot work with values of type String.

 

How can I create a dynamic target of 20% of total completed that I can use for my fuel gauage target value?

 

 

2 REPLIES 2
Dhairya
Solution Supplier
Solution Supplier

Hey @HarperCash 
Please check the data type of completed column in 'KPI' table. It should be decimal or whole number to use it with SUM().

If this helps you then please mark my solution as accepted so that others can find it easily while facing similar issue. Thank You!

Hey,

 

Thanks so much! I created a new column with a numnerical value then created the measure but when I add that to my fule gauage nothing is showing? I get no error but it isn't adding a target of 20% it just stays the same

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.