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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
intrasight
Helper IV
Helper IV

Google Analytics connector missing startdate/enddate parameters

 

I thought this had been asked before, but I didn't find a thread via search.

A GA connection has a query pattern like so:

let
    Source = GoogleAnalytics.Accounts(),
    account = Source{[Id="654321"]}[Data],
    webprop = account{[Id="UA-654321-1"]}[Data],
    profile = webprop{[Id="123456"]}[Data],
    gadata = Cube.Transform(
        profile,
        {
           {
              Cube.AddAndExpandDimensionColumn, 
              "ga:date", 
              {"ga:date"}, 
              {"Date"}
           }, 
           {
              Cube.AddMeasureColumn, 
              "Sessions", 
              "ga:sessions"
           }
        }
    ),
in
  gadata

That seems to provide coverage for the GA API except for the start date and end date parameters. Are those parameters exposed in some way? If not, how does one specify a query like "users last month".  Would it be possible to add them as optional parameters to the GoogleAnalytics.Accounts() or Cube.Transform() function?

39 REPLIES 39

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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