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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gn
Frequent Visitor

Button to select slicer values

Hello, 

 

I am looking for a way to create a button that automatically selects multiple options from the slicer, so if the slicer had 10 measures I want a button that if pressed, will automatically select 4 specific measures. For background, in the excel file I am using each measure has its own column, and each measure shows up as a trendline on the line graph. 

 

Would like to know if this is possible, and if so, how?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gn ,

 

It doesn't seem to be a good idea to create buttons, but you can create a new slicer to achieve the functionality you want.

 

Sample data

Screenshot 2021-06-16 172112.png

Method 1:

Create a table like

Screenshot 2021-06-16 172140.pngScreenshot 2021-06-16 172200.png

Screenshot 2021-06-16 172342.png

 

Method 2:

Create a table like

Screenshot 2021-06-16 172440.png

Measure = IF(ISFILTERED('Table (3)'[Range]),SWITCH(SELECTEDVALUE('Table (3)'[Range]),"A-D",CALCULATE(SUM('Table'[Value]),FILTER('Table',[User] IN {"A","B","C","D"})),"B-H",CALCULATE(SUM('Table'[Value]),FILTER('Table',[User] IN {"B","C","D","E","F","G","H"}))),SUM('Table'[Value]))

Screenshot 2021-06-16 172924.png

 

 

Best Regards,

Stephen Tao

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @gn ,

 

It doesn't seem to be a good idea to create buttons, but you can create a new slicer to achieve the functionality you want.

 

Sample data

Screenshot 2021-06-16 172112.png

Method 1:

Create a table like

Screenshot 2021-06-16 172140.pngScreenshot 2021-06-16 172200.png

Screenshot 2021-06-16 172342.png

 

Method 2:

Create a table like

Screenshot 2021-06-16 172440.png

Measure = IF(ISFILTERED('Table (3)'[Range]),SWITCH(SELECTEDVALUE('Table (3)'[Range]),"A-D",CALCULATE(SUM('Table'[Value]),FILTER('Table',[User] IN {"A","B","C","D"})),"B-H",CALCULATE(SUM('Table'[Value]),FILTER('Table',[User] IN {"B","C","D","E","F","G","H"}))),SUM('Table'[Value]))

Screenshot 2021-06-16 172924.png

 

 

Best Regards,

Stephen Tao

 

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

amitchandak
Super User
Super User

@gn , at a very high level seems like you can do it with bookmarks

 

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

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

Thanks for the quick response! This is close! but I need the bookmark to be for specific slicer selections, not for the graph itself sadly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors