Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Is there any possibility to set Google analytics built-in api filters when querying data?
This is my example query steps in advanced editor,
let Source = GoogleAnalytics.Accounts(), #"1234567" = Source{[Id="1234567"]}[Data], #"UA-987654-1" = #"1234567"{[Id="UA-52004541-1"]}[Data], #"11111" = #"UA-987654-1"{[Id="1234567"]}[Data], #"Added Items" = Cube.Transform(#"11111", {{Cube.AddAndExpandDimensionColumn, "ga:pagePath", {"ga:pagePath"}, {"Page"}}, {Cube.AddMeasureColumn, "Pageviews", "ga:pageviews"}, {Cube.AddMeasureColumn, "Unique Pageviews", "ga:uniquePageviews"}}),
I want to add filters like below (regex filter which is avaiable on GA api, but not in powerbi M language formulas)
ga: pagePath=~^.*?([0-9]{6,7}|mpg[0-9]{1,3}){1}\.html[/]?[^ ]*)
Such filters are available through GA api, I just don't know how to pass them to GA through advanced editor!
PS: I can't use the alternative "Table.SelectRows" functionality, my filters are advanced GA api filters
Support the idea to update the Google Analytics connector here:
Feedback provided by Microsoft here:
"
Thanks for your interest!
We don't support regular expression filters today. With Text filters you can generally implement the same filter logic, but admittedly it wouldn't be as concise as your regex.
We welcome requests for new features at https://ideas.powerbi.com, so consider starting a thread there 🙂
"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
13 | |
11 | |
8 | |
8 |
User | Count |
---|---|
17 | |
10 | |
7 | |
7 | |
7 |