Forum Discussion
Refresh Timeout
- 5 years ago
Hi Anonymous ,
When the refreshed data source is too large, it may cause refresh timeout.
First, you need to download the latest version of powerbi desktop. When the date range is large, only a subset of the data will be returned. If you want to get more or even all the data, you need to append multiple queries with different date ranges.
There are two options to get more data.
let Source = GoogleAnalytics.Accounts(), #"<ID>" = Source{[Id="<ID>"]}[Data], #"UA-<ID>-1" = #"<ID>"{[Id="UA-<ID>-1"]}[Data], #"<View ID>" = #"UA-<ID>-1"{[Id="<View ID>"]}[Data], #"Added Items" = Cube.Transform(#"<View ID>", { {Cube.AddAndExpandDimensionColumn, "ga:source", {"ga:source"}, {"Source"}}, {Cube.AddMeasureColumn, "Users", "ga:users"} }) in #"Added Items"without data column
let Source = GoogleAnalytics.Accounts(), #"<ID>" = Source{[Id="<ID>"]}[Data], #"UA-<ID>-1" = #"<ID>"{[Id="UA-<ID>-1"]}[Data], #"<View ID>" = #"UA-<ID>-1"{[Id="<View ID>"]}[Data], #"Added Items" = Cube.Transform(#"<View ID>", { {Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}}, {Cube.AddAndExpandDimensionColumn, "ga:source", {"ga:source"}, {"Source"}}, {Cube.AddMeasureColumn, "Organic Searches", "ga:organicSearches"} }), #"Filtered Rows" = Table.SelectRows(#"Added Items", each [Date] >= #date(2019, 9, 1) and [Date] <= #date(2019, 9, 30)) in #"Filtered Rows"related document link:Power Query Google Analytics connector | Microsoft Docs
Best Regards,
HenryIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
When the refreshed data source is too large, it may cause refresh timeout.
First, you need to download the latest version of powerbi desktop. When the date range is large, only a subset of the data will be returned. If you want to get more or even all the data, you need to append multiple queries with different date ranges.
There are two options to get more data.
let
Source = GoogleAnalytics.Accounts(),
#"<ID>" = Source{[Id="<ID>"]}[Data],
#"UA-<ID>-1" = #"<ID>"{[Id="UA-<ID>-1"]}[Data],
#"<View ID>" = #"UA-<ID>-1"{[Id="<View ID>"]}[Data],
#"Added Items" = Cube.Transform(#"<View ID>",
{
{Cube.AddAndExpandDimensionColumn, "ga:source", {"ga:source"}, {"Source"}},
{Cube.AddMeasureColumn, "Users", "ga:users"}
})
in
#"Added Items"
without data column
let
Source = GoogleAnalytics.Accounts(),
#"<ID>" = Source{[Id="<ID>"]}[Data],
#"UA-<ID>-1" = #"<ID>"{[Id="UA-<ID>-1"]}[Data],
#"<View ID>" = #"UA-<ID>-1"{[Id="<View ID>"]}[Data],
#"Added Items" = Cube.Transform(#"<View ID>",
{
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
{Cube.AddAndExpandDimensionColumn, "ga:source", {"ga:source"}, {"Source"}},
{Cube.AddMeasureColumn, "Organic Searches", "ga:organicSearches"}
}),
#"Filtered Rows" = Table.SelectRows(#"Added Items", each [Date] >= #date(2019, 9, 1) and [Date] <= #date(2019, 9, 30))
in
#"Filtered Rows"
related document link:Power Query Google Analytics connector | Microsoft Docs
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.