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
timward10
Helper II
Helper II

Function 'CONTAINSROW' does not support comparing values of type Text with values of type Integer.

Hi, 

 

I have the below error message, what should I do to enable this works? 

 

Thanks

 

 

timward10_0-1739540897039.png

 

1 ACCEPTED SOLUTION

Then I think you're using the wrong column, you're comparing a revenue value to a text representation of a year month.

A better approach would be to create a proper date table, marked as a date table, then you can link that to your fact table and use year or year month filters on the date table in your measures.

View solution in original post

4 REPLIES 4
timward10
Helper II
Helper II

Thanks @johnt75, I'll give it a go! 

johnt75
Super User
Super User

It looks like the [Assay Jan 24] column is a date and you are comparing it to text. Try 

Assay Cumulative Count =
CALCULATE (
    COUNTROWS ( 'Exent funnel by product' ),
    YEAR ( 'Exent funnel by product'[Assay Jan 24] ) = 2024
)

Hi @johnt75

 

It is a whole number column returning a revenue value, 

 

Thanks

 

timward10_0-1739542888182.png

 

Then I think you're using the wrong column, you're comparing a revenue value to a text representation of a year month.

A better approach would be to create a proper date table, marked as a date table, then you can link that to your fact table and use year or year month filters on the date table in your measures.

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