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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
tortusstorylist
Frequent Visitor

Help keeping aggregate measures in a visual. Trying to compare individuals to average by category.

Hello,

 

I am trying to create a visual that has individual metrics, as well as the average of those same metrics by employee type. 

 

tortusstorylist_0-1676672520233.png

 

As expected, the average measure is showing the average for that individual. What I want to do is to have the static average by "StaffType" in the "BudgetHoursAverage" column, as shown below:

 

tortusstorylist_1-1676672610651.png

So, I would like to have 31.50 for all individuals who's StaffType is "DIR", etc...

 

I had created a measure I thought would accomplish this but it is still returning the average by individual:

 

BudgetHoursAverage =
VAR __table1 = SUMMARIZE('tablename', 'tablename'[StaffType], "name1", SUM('tablename1'[ProdHoursMonth]) / [FTE Total])
RETURN
CALCULATE(AVERAGEX(__table1, [name1]), FILTER('tablename', 'tablename'[StaffType]))
 
Note, that this is calculating based off of two tables (tablename and tablename1). I can provide more information as needed, as well.
 
Any help would be greatly appreciated!
 

 

1 ACCEPTED SOLUTION

Hi,

This measure works

Measure = CALCULATE([HoursAverage],ALL(Sheet1[Staff Name]))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello,

 

Here is a pbix file that I created which scrubbed the sensitive information: https://pbmares.sharefile.com/d-sb68872bfc427447084f039c4ea66e28e 

Hi,

Is this the result you want?  Download the PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello,

 

Thank you for looking at this. Unfotunately this does not acheive what I was looking for. What I am trying to do is to keep the overall average by Title in the second column in the first table. Here is a screenshot that might clarify: 

tortusstorylist_0-1676988598306.png

Any additional help would be great.

 

Thanks!

Hi,

This measure works

Measure = CALCULATE([HoursAverage],ALL(Sheet1[Staff Name]))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

That works, thanks! 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.