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.
Hello All,
First time posting.
For those of you unaware f the Bradford factor, it is a formula used to calculate a figure based on absenteeism
S2 x D = B
I have a table which pulls from a time and attendance database, I have used filters and to get the data I require and have used Is Consecutive = COUNTROWS('TABLENAME) to get consecutive days of records.
I'm now stumped, I need to calculate the above calculation, but all I get is syntax errors
Solved! Go to Solution.
Thanks for that Simon.
Here is my suggested approach - uploaded with simplified data here:
https://www.dropbox.com/s/gt1jytqobrc9ilt/Bradford%20Factor.pbix?dl=0
The measures in the end are:
Separate Absences = CALCULATE ( DISTINCTCOUNT ( 'Bradford Factor'[Block Index] ), 'Bradford Factor'[Abs] = "2" ) Days Absent = CALCULATE ( COUNTROWS ( 'Bradford Factor' ), 'Bradford Factor'[Abs] = "2" ) Bradford Factor = IF ( HASONEVALUE ( 'Bradford Factor'[ClockNo] ), // Only calculate for one ClockNo at a time, and don't aggregate ClockNos [Separate Absences] ^ 2 * [Days Absent] )
Bradford Factor here doesn't aggregate ClockNos, but you could aggregate using AVERAGEX or some other method if you want.
Hopefully this does what you expect and can be applied to your data model.
Cheers,
Owen
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |