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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
chrisbanton
New Member

Google Analytics Connector - Importing data where values in some columns are null

I am trying to pull data into PowerBI Desktop using the Google Analytics connector. My data includes the following fields:

 

Event Category

Event Action

Event Label

Total Events

Date

[Custom Dimension 1]

[Custom Dimension 2]

 

All this seems to work just fine except I am noticing some of my events are not being brought over (or are being removed) when I add custom dimension 2 to the query. If I remove custom dimension 2 all events show up as expected again. Unfortunately, I need to use these custom dimensions as filters for some of the events I want to display. Best as I can tell these dimensions are hit level dimensions and not all my events set values for them. I would have expected the column for custom dimension 2 would just say null if no value was specified but instead it seems to be removed.

 

Any idea if this is correct behavior (rows without defined values in a column cause the entire row to be filtered out of the dataset) / if there is any way around this other than start passing <blank> values into these custom dimensions with all events that don't set them explicitly during data collection (we can do that but it doesn't help me analyze the data I already have).

 

Thanks for your help.

1 ACCEPTED SOLUTION

Update: I tried running the same query through Googles query explorer tool and got the same results I am seeing with Power BI so it appears Power BI is using the API as designed and the API is filtering out the events where there are not values for all the custom dimensions specified.

 

Will need to restructure data going. 

 

Marking this as closed as it doesnt look like a POwer BI issue.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @chrisbanton,

 

In Power BI desktop, the connector connect to Google Analytics rely on the Google Analytics Core Reporting API. The API may change in a way that affects the results of the queries we generate. Please refer to this article: Google Analytics connector for Power BI Desktop.

 

In your scenario, please try to update the desktop to the newest version. Also based on this article, I would suggest you post a thread here to discuss the custom dimension related to google-analytics-api.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Update: I tried running the same query through Googles query explorer tool and got the same results I am seeing with Power BI so it appears Power BI is using the API as designed and the API is filtering out the events where there are not values for all the custom dimensions specified.

 

Will need to restructure data going. 

 

Marking this as closed as it doesnt look like a POwer BI issue.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors