Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
JillHenninger
Helper I
Helper I

Average of a count

I'm convinced this is an easy solve, but I've not been able to figure it out! I need to get the average # of clients per person (which should be 6.375 [102 total clients/ 16 people)) but I cannot figure out the Dax. I will also need this by team (each person is on a team). Will I need a separate formula for that?

Thank you in advance

 

CCI Associate# of Clients# of Retailers# of Intersections
Person 111658
Person 24517
Person 361468
Person 46843
Person 551552
Person 66636
Person 74728
Person 88856
Person 911657
Person 105735
Person 1131531
Person 127639
Person 1351530
Person 148645
Person 158959
Person 1651538
2 REPLIES 2
camargos88
Community Champion
Community Champion

@JillHenninger ,

 

Check the attached file. You can use this measure for a card:

_Average = DIVIDE(SUM('Table'[# of Clients]), DISTINCTCOUNT('Table'[CCI Associate]),0)

and this one for a table:

 

_Average 2 = CALCULATE([_Average], ALL('Table'))

 

Capture.PNG



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

Proud to be a Super User!



Thank you! So - I evidently left out a key point. "# of clients" is a measure itself (noted below) - it counts text. I think that's where I got stuck... 

 

# of Clients = DISTINCTCOUNTNOBLANK('Assignments Input'[Client Name])

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors