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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
frankhofmans
Helper IV
Helper IV

Average on total level from multiple measures

hi community,

 

I want to generate the average Bradford ratio per individual and per company. I have made the following Dax measures:

 

1. Number of sickness cases in selected period (all sickness cases with at least 1 sickness day in selected period)

2. Number of sickness days in selected period

3. Bradford score: # of cases x 2 x # of sickness days

 

I have the following outcome:

 

Employee ID# of cases in period# of sickness days in periodBradford score
E012520
E0241080
E033636
E04000
E051816
E061010200
E071918

 

The average Bradford score of the company is 53 (average of alle individuals), but i get 2016 as a result (21 cases x 2 x 48 sickness days).

 

How can i generate the average of 53?

 

Many thanks in advance.

 

Regards,

Frank

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @frankhofmans 

 

You can try the following methods.

Average = Var _table=SUMMARIZE(ALL('Table'),'Table'[Employee ID],"Sum",[Bradford score])
Return
AVERAGEX(_table,[Sum])

vzhangti_0-1698142070862.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Charlotte,

 

this formula works, but i select a company (column "Company_Name" in Employee table), then the value doesn't change. How can i adjust this formula to get a average Bradford factor per company?

 

Many thanks,

 

Regards,

Frank

Hi, @frankhofmans 

 

Can you provide information on data that partially contains the name of the company?

 

Best Regards

hi,

 

i have two tables:

 

Table "Employments"

 

Employee_IDEmployer_IDStartdate contractEnddate contract

 

Table "Sickness cases"

 

Employee_IDStartdate sicknessEnddate sickness

 

I've calculated the number of unique employees with at least one working day in selected periode (from the employee_table) and the number of sickness cases and the total duration of the sickness cases per employee. I want to create the following table:

 

Employer_IDAverage bradford factor
E001xxx
E002xxx

 

When i use your formula, i get the same results on every row.

 

Thanks in advance,

 

Regards, Frank

Greg_Deckler
Community Champion
Community Champion

@frankhofmans First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors