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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
dsdesrosiers
Resolver I
Resolver I

Return all rows for a table based on a slicer selection

Greetings all

Below is some mocked up data which resembles the data I have. What I want to do is have a slicer with the unique predictors. When a user selects one of these predictors (the value of which I know I can capture using SELECTEDVALUE), I'd like to return all Index values and then dynamically filter the table for just those Index values.

Any thoughts?


dsdesrosiers_1-1642033776076.png

 

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @dsdesrosiers 

vxiaotang_0-1642388752912.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@dsdesrosiers . If slicer is an independent slice, You can create a switch based on value

 

Switch(True() ,

selectedvalues(Slicer[Value]) , "Product", calculate(Countx(Table[Index]), filter(Table, [predictors] in {1,3})) ,

Countx(Table[Index])

)

 

Plot it with other columns you need

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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