Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Power BI forum,
I have a vast table of transaction data and I'm hoping to find the total utilised time per staff per month in a table that looks similar to the one below. I'm struggling to find the right formula to use in my calculated column. Appreciate any suggestions.
| StaffName | UnitsLogged | IsUtilised | MonthRecorded | CalculatedColumn |
| Sally | 5 | True | 202010 | 5 |
| Sally | 2 | False | 202010 | 5 |
| Bob | 6 | True | 202010 | 9 |
| Bob | 3 | True | 202010 | 9 |
| Bob | 7 | False | 202010 | 9 |
| Sally | 4 | True | 202009 | 11 |
| Sally | 7 | True | 202009 | 11 |
| Sally | 7 | False | 202009 | 11 |
| Bob | 5 | False | 202009 | 8 |
| Bob | 8 | True | 202009 | 8 |
Thanks!
Solved! Go to Solution.
@PowerMyBI , Try a new column like
CalculatedColumn = sumx(filter(Table, [StaffName] =earlier([StaffName]) && [MonthRecorded] =earlier([MonthRecorded]) && [IsUtilised] ="True"),[UnitsLogged])
if IsUtilised is a boolean
CalculatedColumn = sumx(filter(Table, [StaffName] =earlier([StaffName]) && [MonthRecorded] =earlier([MonthRecorded]) && [IsUtilised] ),[UnitsLogged])
@PowerMyBI , Try a new column like
CalculatedColumn = sumx(filter(Table, [StaffName] =earlier([StaffName]) && [MonthRecorded] =earlier([MonthRecorded]) && [IsUtilised] ="True"),[UnitsLogged])
if IsUtilised is a boolean
CalculatedColumn = sumx(filter(Table, [StaffName] =earlier([StaffName]) && [MonthRecorded] =earlier([MonthRecorded]) && [IsUtilised] ),[UnitsLogged])
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 12 |