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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
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.