I have one and the same power . pbix-file and load events from google analytics and found deviations. I load about 1.000.000 events for a period of 7 years each night. To be complete and maybe this influences the data. I loaded this data some times today.
Originaly I have the following query in which I am missing some events that I find with https://ga-dev-tools.web.app/query-explorer/.
let
Source = GoogleAnalytics.Accounts(),
#"xxxxxx" = Source{[Id="xxxxxx"]}[Data],
#"UA-xxxxxx" = #"1798166"{[Id="UA-xxxxxx"]}[Data],
#"xxxxxx" = #"UA-1798166-3"{[Id="xxxxxx"]}[Data],
#"Added Items" = Cube.Transform(#"xxxxxx",
{
{Cube.AddAndExpandDimensionColumn, "ga:eventAction", {"ga:eventAction"}, {"Event Action"}},
{Cube.AddAndExpandDimensionColumn, "ga:eventCategory", {"ga:eventCategory"}, {"Event Category"}},
{Cube.AddAndExpandDimensionColumn, "ga:eventLabel", {"ga:eventLabel"}, {"Event Label"}},
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
{Cube.AddMeasureColumn, "Total Events", "ga:totalEvents"},
{Cube.AddMeasureColumn, "Unique Events", "ga:uniqueEvents"}
}),
#"Filtered Rows (Date)" = Table.SelectRows(#"Added Items", each [Date] > AnalyticsMinDate),
#"Removed Errors - Date" = Table.RemoveRowsWithErrors(#"Filtered Rows (Date)", {"Date"}),
#"Filtered Rows (Label,Category)" = Table.SelectRows(#"Removed Errors - Date", each Text.Contains([Event Category], "xxx") or Text.Contains([Event Category], "xxx") or Text.Contains([Event Category], "xxx") and [Event Label] <> "xxx" and not Text.StartsWith([Event Label], "xxx")),
#"Split Column by Delimiter" = Table.SplitColumn(#"Filtered Rows (Label,Category)", "Event Label", Splitter.SplitTextByEachDelimiter({"-"}, QuoteStyle.Csv, false), {"Event Label.1", "Event Label.2"}),
#"Filtered Rows (NoCompanyId)" = Table.SelectRows(#"Split Column by Delimiter", each [Event Label.1] <> "(not set)"),
#"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows (NoCompanyId)",{{"Event Label.1", Int64.Type}, {"Event Label.2", type text}}),
#"Removed Errors - Labels" = Table.RemoveRowsWithErrors(#"Changed Type"),
#"Renamed Columns" = Table.RenameColumns(#"Removed Errors - Labels",{{"Event Label.1", "Event Label.CompanyId"}, {"Event Label.2", "Event Label.CompanyName"}}),
#"Filtered Rows" = Table.SelectRows(#"Renamed Columns", each [Event Label.CompanyId] = xxxxxx)
in
#"Filtered Rows"
The result is grouped by days and I have only a few events per day but missing some events.
Searching for the missing events i created in the same pbix-file a new similar table but with viewer filters to get the raw data to check where I lose some events.
let
Source = GoogleAnalytics.Accounts(),
#"xxxxxx" = Source{[Id="xxxxxx"]}[Data],
#"UA-xxxxxx" = #"xxxxxx"{[Id="UA-xxxxxx"]}[Data],
#"xxxxxx" = #"UA-1798166-3"{[Id="xxxxxx"]}[Data],
#"Added Items" = Cube.Transform(#"xxxxxx",
{
{Cube.AddAndExpandDimensionColumn, "ga:eventAction", {"ga:eventAction"}, {"Event Action"}},
{Cube.AddAndExpandDimensionColumn, "ga:eventCategory", {"ga:eventCategory"}, {"Event Category"}},
{Cube.AddAndExpandDimensionColumn, "ga:eventLabel", {"ga:eventLabel"}, {"Event Label"}},
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
{Cube.AddMeasureColumn, "Total Events", "ga:totalEvents"},
{Cube.AddMeasureColumn, "Unique Events", "ga:uniqueEvents"}
}),
#"Filtered Rows" = Table.SelectRows(#"Added Items", each Text.Contains([Event Label], "123456")),
#"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"Date", Order.Descending}})
in
#"Sorted Rows"
But now the Events are grouped or summed or sampled with by far more events for some few days. Many days are missing as they are pobably grouped by the shwon days.
I repeated this many times to excluede errors. Some idea how i get all data and not sampled or groupe over some days?
Hi @ElmarHilber ,
Check this similar post: Solved: Google analytics not importing all data - Microsoft Power BI Community
And there's a limitation.
The standard limitations and quotas for Google Analytics AP requests is documented in Limits and Quotas on API Requests. However, Power BI Desktop and Power BI service allow you to use the following enhanced number of queries.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
386 | |
104 | |
67 | |
54 | |
49 |
User | Count |
---|---|
378 | |
118 | |
82 | |
67 | |
54 |