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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
efilipe
Helper IV
Helper IV

Group by Duration problem

Hi guys, 

 

I'm having a problem here.

 

I have 3 columns, date, video_id, event_action and time_watched that I get from Google Analytics integration.

 

2020-03-12_14-06-58.png

 

I want to Group by Date and Video ID and sum duration. So Event column should go away.

 

Just to make a test and validate the numbers comparing to GA, I'm also removing the video_id column to se the total for the day.

 

2.png

And I filter after for the date 07/03/2020 I get this value:

 

3.png 

But this result doesnt match whats in Google Analytics.

 

But, if I do it differently. If I filter the date I want to validate with GA first, before doing a group by:

 

4.png

 

And then do a group By:

5.png

 

I get a different result. The RIGHT result.

 

6.png

 

I'm going crazy here. What am I doing wrong?? 🙂

 

 

8 REPLIES 8
Anonymous
Not applicable

@efilipe 

This is strange, both should get a same result. Is is possible to share the data or a sample that has the same issue.

 

Best regards

Paul Zheng

 

Hello, @Anonymous and @az38 

 

I recorded a small video. Can you guys watch?

 

https://we.tl/t-c0IzrrIQTb

 

Thanks!

 

az38
Community Champion
Community Champion

@efilipe 

in this video demonstrated work in ONLY Power QUery editor which is the PREVIEW of data as I told you before.

Press Close & Apply and check your data in the both workarounds

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Like @az38 said I have done testing with my data and it works fine. Either way got the same results.

 

 

Did I answer your question? If Yes, Give me a Kudo

az38
Community Champion
Community Champion

Hi @efilipe 

do you check the data in Power Query mode or Report mode?

Power query displays only review of data and may not be up to date


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Shows the wrong number in the dashboard.

 

Thanks

@amitchandak maybe you know the answer? 🙂

az38
Community Champion
Community Champion

@efilipe 

Ive done with my sample data and it works as expected.

could you share your pbix-file after remove all sensitive data?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.