Skip to main content
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Responsive Resident
Responsive Resident

Google Analytics filter by date with connector

This GA connector looks a bit basic.


How would you filter on date with it - it seems to pull all the data it can at the moment.


Im looking to pull the last 28 days data aggregated so it can count unique users. So i need to filter by date without including the date field as a column.


Is there a manual line or two I can add to to the query?


Here is my expression i want to date bound on import.


= Cube.Transform(#"105237604",
            {Cube.AddAndExpandDimensionColumn, "ga:userAgeBracket", {"ga:userAgeBracket"}, {"Age"}},
            {Cube.AddAndExpandDimensionColumn, "ga:userGender", {"ga:userGender"}, {"Gender"}},
            {Cube.AddAndExpandDimensionColumn, "ga:pagePathLevel1", {"ga:pagePathLevel1"}, {"Page path level 1"}},
            {Cube.AddMeasureColumn, "Users", "ga:users"}



Helper I
Helper I

Hi @StephenF 

As a workaround you can import your GA data into account and access the data with Power BI.

You can also filter the last 28 days to import and get the number of unique users.


windsor.ia date range.png

Community Support
Community Support

Hi @StephenF ,


Did you want to filter your data by parameter in power query? Please refer to this case.


Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

I'm not trying to filter the rows post import. I'm trying to filter in the API call.

Not applicable

hi @StephenF!

have you found a solution? if yes, can you please share it with us?


Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors