Forum Discussion
Google Analytics - Avg. Session Duration - Duplicates
Hello!
I'm building a dashboard based on Google Analytics data, the main focus is to show the top visitated pages (sessions) and also the Average Session Duration on those pages, all this is per year only (not daily)
But after customizing the filters, I'm still getting duplicates on pages (and more than two), does anybody know how can I get just one result with an accurate Avg. Session Duration?
any suggestion will be very appreciate it!
Thank you in advance!
8 Replies
- amitchandakSuper User
lulumedina , Based on what I got, I doubt you can do Avg of duration kind of column.
refer if these can help
https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-using-dax
https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx
https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&tab=digestviewer
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389 - parry2kSuper User
lulumedina I worked extensively with GA , are you pulling any other column which is making that row unique, can you just take 3 columns to check:
- Page visited
- year
- avg session
and see if you get unique rows.
Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- manikumar34Solution Sage
Not clear.
Try something like this.
DIVIDE(SUMX(table,table[avgsession]*table[pages visited],sum(table[pages visited]),0)
Regards,
Manikumar
- parry2kSuper User
manikumar34 I think the problem here is something different, GA data come in this from GA, it is not a measure issue or anything like that, it is the raw data that you get from GA. I think this problem is not a measure issue but the issue more of getting raw data from GA.
Just to let you guys know what the issue is (In my opinion).
Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- manikumar34Solution Sage
- parry2kSuper User
lulumedina so no duplicates when you pull lesser columns, correct?
- lulumedinaFrequent Visitor
Apparently is no showing me duplicates, but those urls aren't the ones I need to show on my dashboard. 😪
- parry2kSuper User
lulumedina so at least you know the underlined problem. It is all about granularity and since GA already calculate the session, not sure how you want to visualize the data, you can surely remove the duplicate rows and need some work around but you have to ask yourself how you want to visualize the data and what is important.