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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.