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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to calculate Active user or User in GA4 with Power BI

Hi all,

 

Does anyone know how to use dax to calculate the number of Google analytics 4 GA4 active users or users?

 

This is definition below

 

The number of distinct users who visited your website or application. An active user is any user who has an engaged session or when Analytics collects:

Thanks,

 

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hey Harry,

 

Seems difficult to do with literally zero knowledge of your data model. Can you please share a sample pbix file? (If you don't know how, please check the pinned thread in the forum.)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Chris10an
New Member

Hi HarryB

I am troubled with the exact same challenge and can see that it is marked as "Solved".

Can you please share the solution with me?

Anonymous
Not applicable

@Chris10an I am using a tool called windsor.ai to take data from GA4 I also believe within PBI there is a GA4 connector.

 

To get the active users right for your tables or chart I would advise creating several tables. I mean do not put all of your data under one single tables because PBI aggregator data in a different way. It will start to sum up data from columns that you do now want it to.

 

Then for my table data I used this calculation to create a measure for my users. 

Users =
CALCULATE(SUM(ga4_traffic_data[data.users]))

 

So for my table 1 which has conversions and learners and users I simply drop in the measure and it calculates the users just fine. You will have to change ga4_traffic_data[data.users to what ever your data reference is.

 

I use the same measure in a different table for a table with office location and conversions the active users calculate just fine.

 

Keep your column data small in seperate tables and you will be fine

Wilson_
Super User
Super User

Hey Harry,

 

Seems difficult to do with literally zero knowledge of your data model. Can you please share a sample pbix file? (If you don't know how, please check the pinned thread in the forum.)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.