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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors