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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
viking3000
New Member

Power bi and google analytics. How to set up filters for date before getting full data

How to set up filters for date before getting full data. Right now pbi export all data from day one. Is more than 1.7mil. rows. I reach limit after 1mil and way to use date filter inside pbi is not a option.

So are posible way setdate range parameter (example last 3 month) before export starts?

In adv editor source code:

let
    Source = GoogleAnalytics.Accounts(),
    #"1*******1" = Source{[Id="1*******1"]}[Data],
    #"UA-1*******1-1" = #"1*******1"{[Id="UA-1*******1-1"]}[Data],
    #"1*******6" = #"UA-1*******1-1"{[Id="1*******6"]}[Data],
    #"Added Items" = Cube.Transform(#"1*******6",
        {
            {Cube.AddAndExpandDimensionColumn, "ga:eventAction", {"ga:eventAction"}, {"Event Action"}},
            {Cube.AddAndExpandDimensionColumn, "ga:eventLabel", {"ga:eventLabel"}, {"Event Label"}},
            /*{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},*/
            {Cube.AddMeasureColumn, "Unique Events", "ga:uniqueEvents"}
        })
in
    #"Added Items"
#"1*******1" = Source{[Id="1*******1"]}[Data],
    #"UA-1*******1-1" = #"1*******1"{[Id="UA-1*******1-1"]}[Data],
    #"1*******6" = #"UA-1*******1-1"{[Id="1*******6"]}[Data],

My guess, after source location we need somehow set date range parameters.

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @viking3000 

You could use Parameters feature in Power BI.

This is the tutorial for you to refer to

https://www.mssqltips.com/sqlservertip/4475/using-parameters-in-power-bi/

 

Best Regards,

Lin

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors