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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
StephenF
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"}
        })

 

 

4 REPLIES 4
OlegS
Helper I
Helper I

Hi @StephenF 

As a workaround you can import your GA data into windsor.ai 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

v-frfei-msft
Community Support
Community Support

Hi @StephenF ,

 

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

https://community.powerbi.com/t5/Desktop/Power-Query-Current-Date-Filter/td-p/67586

 

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.

Anonymous
Not applicable

hi @StephenF!

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

Thanks,

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.