I have attached a GIF that shows a simple test I did using a scenario similar to yours. Here are the important values from the test:
OnSelect of Variable1 Button:
Set(variable1, true); Set(variable2, false); Set(variable3, false)
OnSelect of Variable2 Button:
Set(variable2, true); Set(variable1, false); Set(variable3, false)
OnSelect of Variable3 Button:
Set(variable3, true); Set(variable1, false); Set(variable2, false)
OnSelect of All Accounts Button:
Set(variable1, false); Set(variable2, false); Set(variable3, false)
Items property of the Gallery:
Filter(Accounts, (variable1 && 'Account Name'= "Account One") || (variable2 && 'Account Name' = "Fourth Coffee (sample)") || (variable3 && 'Account Name' = "Adventure Works (sample)") || (!variable1 && !variable2 && !variable3))
Based on this example, your formulas should be something like the following:
Items property of the Gallery:
Filter('Alarm Tracking', (variable1 && Value('Days Old')<5) && Value('Days Old')>0, true) || (variable2 && Value('Days Old')>6 && Value('Days Old')<10) || (variable3 && Value('Days Old')>10) || (!variable1 && !variable2 && !variable3))
OnSelect of Variable1 Button:
Set(variable1, true); Set(variable2, false); Set(variable3, false)
OnSelect of Variable2 Button:
Set(variable2, true); Set(variable1, false); Set(variable3, false)
OnSelect of Variable3 Button:
Set(variable3, true); Set(variable1, false); Set(variable2, false)
OnSelect of All Tickets Button:
Set(variable1, false); Set(variable2, false); Set(variable3, false)
Let me know if this helps.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Hardit Bhatia
https://thepoweraddict.com