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

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

Reply

How to build a measure with counts per unit?

I have a very large dataset which contains Companies, Users (related to these companies by email-domain) and a hit-count. I need to calculate a measure to have the number of hits in relation to the number of users per company.

Is the measure simply a Count(Hits)/Count(User)?? The numbers seem strange to me....

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@wolfgangkb-work 

 

AverageX(Summarize(Table, Table[User], "_1",Count(Table[Hits]) ),[_1])

 

or

 

AverageX(Summarize(Table, Table[Company], Table[User], "_1",Count(Table[Hits]) ),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@wolfgangkb-work 

 

AverageX(Summarize(Table, Table[User], "_1",Count(Table[Hits]) ),[_1])

 

or

 

AverageX(Summarize(Table, Table[Company], Table[User], "_1",Count(Table[Hits]) ),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you, I will try to go from here on my own (because the colums are in different tables)

 

Helpful resources

Announcements
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.