Forum Discussion
chriswragge
Helper I
8 years agoAdobe Analytics connector with Calculated Metrics from multiple report suites
H there,
I am trying to get data from multiple report suites with some looping code. I have a Calcualated Metric that I can access when I pull directly from the report suite it was saved under, but not from other report suites.
For example, the below code works when I have the source to be reportsuite1, but not when I use reportsuite2
{Cube.AddMeasureColumn, "Visits_Calculated", "cm300000555_5b8db57559161d5923cac59b"}, Is this a limitation of the Adobe Analytics Connector or am I doing something wrong? When using report builder, the api works fine with my required pull, so I assume this is not a technical limitation on Adobe's part...
Found the error. I needed to be more explicit in my call.
This:
Source = AdobeAnalytics.Cubes(), reportsuite= Source{[Id="myreportsuite)]}[Data], #"Added Items" = Cube.Transform(reportsuite,Need to be:
Source = AdobeAnalytics.Cubes([HierarchicalNavigation=true]), #"MyCompany" = Source{[Name="MyCompany"]}[Data], reportsuite= #"MyCompany"{[Id="myreportsuite"]}[Data], #"Added Items" = Cube.Transform(reportsuite,
1 Reply
- chriswragge
Helper I
Found the error. I needed to be more explicit in my call.
This:
Source = AdobeAnalytics.Cubes(), reportsuite= Source{[Id="myreportsuite)]}[Data], #"Added Items" = Cube.Transform(reportsuite,Need to be:
Source = AdobeAnalytics.Cubes([HierarchicalNavigation=true]), #"MyCompany" = Source{[Name="MyCompany"]}[Data], reportsuite= #"MyCompany"{[Id="myreportsuite"]}[Data], #"Added Items" = Cube.Transform(reportsuite,