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
aicirtap027
Frequent Visitor

Error: The function SUM can not work with values of type String

Hi All,

 

I am trying to create a measure but i encountered error when trying to put this on the values of a visualization. I need to measure the metric "A2R GPI 4" then sum the client on it. Please help me to correct my syntax, thanks. 

 

GPI 4 = IF(SUM('Source Dump'[Metric]) = "A2R GPI 4", SUM('Source Dump'[Client]

ERROR:

error.JPG

 

 

1 ACCEPTED SOLUTION
aicirtap027
Frequent Visitor

Already fix my problem.

 

I created this formula 

GPI 4 = SUMX(FILTER('Source Dump','Source Dump'[Metric]="A2R GPI 4"),'Source Dump'[Client])

View solution in original post

1 REPLY 1
aicirtap027
Frequent Visitor

Already fix my problem.

 

I created this formula 

GPI 4 = SUMX(FILTER('Source Dump','Source Dump'[Metric]="A2R GPI 4"),'Source Dump'[Client])

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.