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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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