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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
AmudhaKumaran
Helper I
Helper I

DAX using CONTAINSSTRING

Hi Team

 

I tried to Calculate a sum by using CONTAINSSTRING filter as shown below. But this code throws error. Please help.

 

Measure =

CALCULATE (

    SUM (Table[Col1] ),

    FILTER (

        ALL (Table[Col2] ),

        CONTAINSSTRING (Table[Col2], "abc" )

    ) * 200000

)

 

Error:

FILTER is used in TRUE/FALSE expression. This is not allowed.

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

What do you expect to get when you multiply a table by 200000?

 

Do you get the same error without that multiplier?

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

What do you expect to get when you multiply a table by 200000?

 

Do you get the same error without that multiplier?

Thanks @AlexisOlson . With your hint, I troubleshooted it. I have misplaced that multiplier. Not getting any error now.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.