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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Analitika
Post Prodigy
Post Prodigy

Wrong dax formula in Power BI

Hello having wrong error syntax dax, how fix it?

Analitika_0-1634218044810.png

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Analitika ,

vyingjl_0-1634779707542.png

The error would happen in here based on the error message. ContainRows() is the same with IN.

Seems like the type of your [SAS_KOD] column is text while 20210 is a number type.

You can write the formula like this:

[SAS_KOD] in {"20210"}

or use '=' directly to compare since there is only one value to search and compare:

[SAS_KOD] = "20210"

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Analitika ,

vyingjl_0-1634779707542.png

The error would happen in here based on the error message. ContainRows() is the same with IN.

Seems like the type of your [SAS_KOD] column is text while 20210 is a number type.

You can write the formula like this:

[SAS_KOD] in {"20210"}

or use '=' directly to compare since there is only one value to search and compare:

[SAS_KOD] = "20210"

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

VahidDM
Super User
Super User

Hi @Analitika 

 

Check the type of columns you used in the formula. 

 

Appreciate your Kudos!!

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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