Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have access to Google Analytics data of a website (obtained through tagging imposed by the website's developer).
Here I have a access to several sections of the "property".
In my case I am interested in GA data from two sections: the website and the blog.
For both I need to perform the same extractions, creating the same Dimension tables and so forth...
Hence, I perform the same extractions twice, while they look the same differing only in the top lines,
which look something like this:
let
Source = GoogleAnalytics.Accounts(),
#"11223344" = Source{[Id="11223344"]}[Data],
#"UA-11223344-2" = #"11223344"{[Id=UA-11223344-2]}[Data],
#"556677889" = #"UA-11223344-2"{[Id="556677889"]}[Data],
#"Added Items" = Cube.Transform(#"556677889",
(for the website)
and
let
Source = GoogleAnalytics.Accounts(),
#"11223344" = Source{[Id="11223344"]}[Data],
#"UA-11223344-4" = #"11223344"{[Id="UA-11223344-4"]}[Data],
#"566778899" = #"UA-11223344-4"{[Id="566778899"]}[Data],
#"Added Items" = Cube.Transform(#"566778899",
(for the blog)
I thought of creating two new parameters, with two possible values each, to be chosen from a list.
Following the example above:
param1 = "UA-11223344-2" or "UA-11223344-2"
param2 = "556677889" or "566778899"
then putting a condition (using M) to pick ether one or the other value of param2 in line 5, depending on the value of param1.
However, despite correctly recognising the parameter value, Power Query returns the following error:
Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Id="UA-11223344-2"
Table=[Table]
Does anybody know a way to solve this issue? Thank you
Firstly, connect to the data source and open the advanced editor, you would get codes as below:
let
Source = GoogleAnalytics.Accounts(),
#"11223344" = Source{[Id="11223344"]}[Data],
#"UA-11223344-2" = #"11223344"{[Id=UA-11223344-2]}[Data],
#"556677889" = #"UA-11223344-2"{[Id="556677889"]}[Data],
#"Added Items" = Cube.Transform(#"556677889",
Change it to the following:
let
Source = GoogleAnalytics.Accounts(),
step1 = Source{[Id="11223344"]}[Data],
step2= step1{[Id=parameter1]}[Data],
step3 = step2{[Id=parameter2]}[Data],
#"Added Items" = Cube.Transform(step3,
meanwhile, create two parameter:
parameter1, parameter2
Best Regards
Maggie
I tried this but it didn't work
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |