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

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