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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors