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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors