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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
devGV_88
Helper I
Helper I

Use slicer value/s as a filter in a measure

Hi folks,

 

I looking for a way to capture the values selected in a slicer.

I tried with VALUE, VALUES and SELECTED VALUES, but did not work...

 

This is my calculated table, where I want to sum the total by date/hour... And the dinamic filter should be the City.

Using {"USA"} works, and more than one city. But I need replace it withthe value from the slicer selection (1 or more than 1 city...)

 

devGV_88_0-1713465911985.png

 

1 ACCEPTED SOLUTION

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1713672186049.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Pravin_
Regular Visitor

Are you storing this calculated table in the model as a physical table?

In this case I don't think it will be interactive with slicers on the report page

Greg_Deckler
Community Champion
Community Champion

@devGV_88  In your FILTER use [City] IN DISTINCT('SlicerTable'[Value])

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

 

I tried it, but I got this error: A table of multiple values was supplied where a single value was expected.

@devGV_88 Can you post sample data?

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Let me know if works...

ExampleFile 

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1713672186049.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Greg_Deckler
How can I attach the pbix?

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.

Top Solution Authors