Forum Discussion
jlie
9 years agoAdvocate I
Calculate One-Time Visitors from Google Analytics Session Data
I have a data table that contains single Sessions and the Dimension ga:userType, that states if the Session is the first session of the identified user or a subsequent one ("New Visitor" vs. "Returni...
- 9 years ago
Ok, i figuered it out:
I need two measures on the table AnonymousSessions
Returning Visitors = CALCULATE( DISTINCTCOUNT(AnonymousSessions[Client Id]); AnonymousSessions[User Type]="Returning Visitor" ) OneTimeVisitors = DISTINCTCOUNT(AnonymousSessions[Client Id]) - [Returning Visitors]This yields the correct data; I can now slice/dice the sessions by channel or date and see 100% accurate the returning and one-time visitors in the respective context.
jlie
9 years agoAdvocate I
Ok, i figuered it out:
I need two measures on the table AnonymousSessions
Returning Visitors =
CALCULATE(
DISTINCTCOUNT(AnonymousSessions[Client Id]);
AnonymousSessions[User Type]="Returning Visitor"
)
OneTimeVisitors =
DISTINCTCOUNT(AnonymousSessions[Client Id]) - [Returning Visitors]This yields the correct data; I can now slice/dice the sessions by channel or date and see 100% accurate the returning and one-time visitors in the respective context.
Andrian
8 years agoNew Member
Hello,
I am using powerBI Desktop and using the GA connector provided by PBI. How do you get the client ID and the Session Id? I don't see them in the data. Thank you.
Fred