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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sid_125
New Member

Getting error when trying to use one of the measure in the visual

Hi,

I am trying to use a measure which I created in one of the visual but I am getting an error:

POWER BI ERROR: calculation error in measure: DAX comparison operations do not support comparing values of type integer with values of type text. Consider using the VALUE or FROMAT function to convert one of the values.

This is my DAX expression for that measure: 

06.1 CY TRIR for abc = CALCULATE(DIVIDE([01 Reportable Incidents], DIVIDE(SUM('MinesProdYearly_dataset'[ANNUAL_HRS]),200000)), Mines[MINE_ID] = "3605018", USERELATIONSHIP(dimDate[Year],MinesProdYearly_dataset[CALENDAR_YR]))

All of the columns mentioned above has Integer data type and still it is asking me to convert one of the values. I got really confused here! Can someone please help me?

Thanks,
Sid
2 REPLIES 2
Sid_125
New Member

Sid_125_0-1686070352958.png

Nope, its already in numerical format.

nvprasad
Solution Sage
Solution Sage

Hi Sid_125,

One of the column you used in the measure is in text format. I guess it could be '[ANNUAL_HRS] column.

 

Please check and change to numarical format.

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
N V Durga Prasad

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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