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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Radio button alternative for filtering?

I have a table containing data that goes back 32 days.  There are 3 bit type columns in the table which are used as flags: MTDLast 10 Days and Last 30 Days (based on yesterday's date).  I would like to have something like a slicer that functions like radio buttons and allows me to switch between filtering on these 3 columns, and also makes it clear which filter is active, preferably by highlighting the selected button.  

 

I have built this out in Excel using VBA, but I am in the early stages of transitioning to Power BI, and this would be an immensely helpful feature.  I do not think there is anything like VBA for Power BI, and I cannot find any other options that might provide this capability, but I hope I'm just missing something.  Thanks in advance!

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

You may try to create the dynamic values by slicer to achieve it.

here are some blogs for you refer to

https://community.powerbi.com/t5/Community-Blog/Dynamically-change-the-information-within-a-visual-via-a-slicer/ba-p/87027

 

https://www.youtube.com/watch?v=lFd2hjkKz_Q

 

https://powerpivotpro.com/2018/05/disconnected-slicers-with-dax-variables-selectedvalues/

 

Best Regards,

Lin

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.