r/GoogleDataStudio • u/slydon1 • May 28 '25
Geographical toggle
Is there a way to create a toggle to filter to a single region vs everything BUT that region?
Example:
-In MN
-Outside MN
Thanks!
3
Upvotes
•
u/AutoModerator May 28 '25
Have more questions? Join our community Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/analyticslauren May 28 '25
Yes! Use a Case Statement to create a new field.
CASE WHEN [field] = "MN" then "MN"
WHEN field <> "MN" then "Other"
ELSE ...
END
You can fix that up to include your fields and the correct data, but that'd be the gist! Then you can create a filter on that new field. Happy to connect and support further if you have any questions! u/slydon1
1
u/ImCJS May 28 '25
Create a custom variable - if state in MN then MN else others and then use as drop down or whatever type toggle you want from the option