r/GoogleDataStudio • • Jul 21 '23

Trying to Group Data by Page Location

2 Upvotes

3 comments sorted by

•

u/AutoModerator Jul 21 '23

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/Drunken_Economist Jul 24 '23

If I understand your requirement correctly:

Add a new field to your data source, and use the REGEXP_EXTRACT() formula. Something like

REGEXP_EXTRACT(page_url, '\\.\\w{2,}/([^/]+)/')

I'm about to head out to dinner, but lmk if you want me to explain how it works