Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
How can I total the shift time based on the occurrence of a name in either the employee or supervisor column:
Source Data:
Employee | Supervisor | Shift Time | |
6/9/2022 | Jack | Jill | 1.5 |
6/10/2022 | Jill | 1.1 |
My Power BI Report output:
I need Jill's time to total 2.6 and have no idea how to make that happen.
TYIA!
David
Solved! Go to Solution.
Hi @vinnie9935 ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Measure = var _1= MAXX(ALL('Table'),'Table'[Supervisor])
var _2=CALCULATE(MAX('Table'[Shift Time]),FILTER(ALL('Table'),'Table'[Supervisor]=_1))
return
IF(_1=SELECTEDVALUE('Table'[Employee]),MAX('Table'[Shift Time])+_2,MAX('Table'[Shift Time]))
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vinnie9935 ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Measure = var _1= MAXX(ALL('Table'),'Table'[Supervisor])
var _2=CALCULATE(MAX('Table'[Shift Time]),FILTER(ALL('Table'),'Table'[Supervisor]=_1))
return
IF(_1=SELECTEDVALUE('Table'[Employee]),MAX('Table'[Shift Time])+_2,MAX('Table'[Shift Time]))
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |