cancel
Showing results 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.

Helper I

Sum pages visited per session

Alright.... So I want to create a measure that will sum up the number of pages visited per session.

I want to sum the count of the URL column for each UnqSession, and have the ability to average it over time or industry (etc)

I can lay it out in PBI Table and it looks like this, but I need measures so I can look at averages by month, etc..

2 ACCEPTED SOLUTIONS
Super User

Count till Date avg above that

AverageX(Values(Table[Date]), Calculate(Distinctcount(Table[PageID])))

Count till Month avg above that

AverageX(Values(Table[Month Year]), Calculate(Distinctcount(Table[PageID])))

you can use count in place of Distinctcount

Super User

Hi,

In the Query Editor, seperate the Date and time stamp in 2 columns from the Eventtime column.  Create a Calendar Table with calculated column formulas  for Year, Month name and Month number.  Sort the Month name by the Month number.  Create a relatinoship (Many to One and Single) between the Event Date column and Date column of the Calendar Table.  To your visual, drag Year and Month name from the Calendar Table.

Write this measure

Measure = counta(Data[URL])

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
3 REPLIES 3
Helper I

Thank y'all so so much

Super User

Hi,

In the Query Editor, seperate the Date and time stamp in 2 columns from the Eventtime column.  Create a Calendar Table with calculated column formulas  for Year, Month name and Month number.  Sort the Month name by the Month number.  Create a relatinoship (Many to One and Single) between the Event Date column and Date column of the Calendar Table.  To your visual, drag Year and Month name from the Calendar Table.

Write this measure

Measure = counta(Data[URL])

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Super User

Count till Date avg above that

AverageX(Values(Table[Date]), Calculate(Distinctcount(Table[PageID])))

Count till Month avg above that

AverageX(Values(Table[Month Year]), Calculate(Distinctcount(Table[PageID])))

you can use count in place of Distinctcount

Announcements

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

Power BI Monthly Update - April 2024

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

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors