Select to view content in your preferred language

Creating selector with two, not mutually exclusive options from two other fields

111
0
a month ago
BarrettLewis1
Occasional Contributor

I am making a dashboard of city tax lots. These tax lots were analyzed within two inventories, one that permits residential use and another that permits employment. There are two binary fields, "Flag_Residential" and "Flag_Employment", where 1 = residential or employment, respectively, and 0 means it is not. Many tax lots have a value of 1 in both fields. 

What I want is to make a selector with two buttons that can be pressed, either at the same time or on their own. I want the buttons to say Employment and Residential. I want the behavior to be that if a user selects the Employment button, ALL tax lots filter down to lots with a 1 in that flag field, regardless of whether they also have a 1 for residential. And then the user could either select residential as well and have them all turn on, or just do residential. Obviously I know I could easily just create one field and fill it in with Employment, Residential, or Mixed, but I'd prefer a slightly fancier solution. I am pretty sure I need to use Data Expressions to do it, but the documentation on Arcade is of course hideously convoluted. Any leads that could be given would be great.

0 Kudos
0 Replies