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

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