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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data from Google Analytics into Power bi and in Google DataStudio is not matched .. big difference

Hi All,
In my organization there some Data Studio charts created from Google Analytics data. Now I am creating the same in Power-bi from the same source i.e Google Analytics. There is huge difference between those two reports. I found one blog that there is sampling power-bi does if there is too many data loaded from Google analytics. But at least count matches nearby but it is showing huge difference.
Can someone please help me here if any workaround/way/solution to reconcile those two reports.

 

Thanks,

Ganesh

6 REPLIES 6
ReportBuilder07
Helper III
Helper III

Hi, I had some sampling issues more than once when exporting GA data to PBI. As a workaround, maybe you can connect your data using a 3rd party connector. I currently use Windsor.ai's GA connector and I haven't had any other sampling issue. In case you wonder, to make the connection first search for the GA4 connector in the data sources list:

 

GA-1.png

 

After that, just grant access to your GA account using your credentials, then on preview and destination page you will see a preview of your GA fields:

 

GA-2.png

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url.

 

SELECT_DESTINATION_NEW.png

jagdalegmail
Regular Visitor

Hi 

As you have mention, I have tried to set SamplingLevel but it gives the below errror. Please let me know if I am missing something here. 

Error: Expression Error : The name "SamplingLevel" wasn't recognized

jagdalegmail_0-1632685147022.png

 

 

 

 

Hi @jagdalegmail,

 

You need add this code in the advanced editor.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Hi v-sulin-mstf,

Thanks for the reply.

Looks like you forgot to add code snippet. 

I have already try to add that SampleLevel code in advanded editor.

 

Thanks,

Ganesh

v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

Please try this:

Query editor>>add this code: #"samplingLevel" = HIGHER_PRECISION in each GA table.

For more information, please refer:

https://community.powerbi.com/t5/Desktop/Problem-with-Google-Analytics-data/td-p/965367

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Thanks for reply. 

As you have mention, I have tried to set SamplingLevel but it gives the below errror. Please let me know if I am missing something here. 

Error: Expression Error : The name "SamplingLevel" wasn't recognized

jagdalegmail_0-1632394908305.png

 

Thanks,

ganesh

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.