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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jamiethow
Frequent Visitor

Help trying to get averages

Hi all,  

 

Apologies if I have posted this in the wrong section.

 

I have a situation where I need to get a few different averages, and they all come from the same source data, in a table called Team Reps.   At the moment I am building a Matrix visualisation which has the different sectors across the top, and the rest is all different measures working its way down.

 

I also have a Date filter which is not connected to any table and I instead use a VAR in my measures to get the date for any comparisions.

 

The issue I am having for this example is that I need to the Average Number of Companies per Team, it is currently done manually by creating a pivot table in Excel and then selecting the rows relevant to the sector and getting the average from the bottom of the screen based on the selection.

 

I have tried a few different ways of looking at it, grouping it in the transform data area, or creating a new summized table, but the issue comes when I try to introduce any Date logic in to the equation as the entire matrix should change based on the month selected.

 

This is a basic example of the data I am looking at.

 

 

ContactSectorTeamCompanyJoin Date
Contact1Sector1Team 1Company 114/02/2021
Contact2Sector2Team 2Company 217/05/2021
Contact3Sector3Team 3Company 321/05/2021
Contact4Sector1Team 4Company 407/04/2021
Contact5Sector2Team 5Company 530/08/2021
Contact6Sector3Team 6Company 609/11/2021
Contact7Sector1Team 1Company 714/04/2021
Contact8Sector2Team 2Company 801/01/2021
Contact9Sector3Team 3Company 925/12/2021
Contact10Sector1Team 4Company 1005/11/2021

 

Any help would be appriciated.

 

Thanks!

6 REPLIES 6
parry2k
Super User
Super User

@Jamiethow I think this is what you are looking for, add the following measure:

 

Avg = COUNTROWS ('Avg' ) / DISTINCTCOUNT('Avg'[Team] )

 

parry2k_0-1639408078154.png

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Jamiethow can you share the excel file? It is not easy to provide a solution without understanding how you are getting to these numbers?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Jamiethow you are arriving at those numbers?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I am getting them manually by creating a Pivot Table in Excel, selecting all the values in the rows related to each sector and taking a note of the average which is displayed at the bottom of the screen.

parry2k
Super User
Super User

@Jamiethow what result you are looking for?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi 

Basically looking for something that would allow me to get the averages which would be affected by the date slicer as well.

Based on the example data that I have posted I would expect to see that 

Sector 1 has an Average of 2
Sector 2 has an Average of 1.5

Sector 3 has an Average of 1.5

 

But if I was to use the Date slicer and remove the December record I would expect to see

 

Sector 1 has an Average of 2
Sector 2 has an Average of 1.5

Sector 3 has an Average of 1

Let me know if you need anything else.

 

Thanks

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors