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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply

IN Operator and Values : A table of multiple values was supplied where a single value was expected

Hi Folks,
 
When I use the below formula I get this error "A table of multiple values was supplied where a single value was expected"
 
Top 5 Stores Sales Records = FILTER('Sales Fact',
RELATED('Store Dim'[Store Name]) IN {VALUES('Top 5 Stores'[Store Name])})
 
Top 5 Stores is a calculated table.
 
Any idea why this is happening? I belive IN should work here, if you can suggest any alternative to IN to filter multiple values that would be great.
 
Regards
Vikrant
1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

Hi @vikrantarora25  - remove the { } from around VALUES and it should work for you. 

 

See this for more about the IN operator https://www.sqlbi.com/articles/the-in-operator-in-dax/ 

 

Hope this helps

David

View solution in original post

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

Hi @vikrantarora25  - remove the { } from around VALUES and it should work for you. 

 

See this for more about the IN operator https://www.sqlbi.com/articles/the-in-operator-in-dax/ 

 

Hope this helps

David

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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