Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have created a column for standard working hours where everyone is 40 hours except PersonA is 20
My table is TimeDetail-fyi
Like
PersonA | 20 | ||
PersonB | 40 | ||
PersonC | 40 | ||
Total | 40 | (should be 100) |
Solved! Go to Solution.
Hi, @electrobrit ;
You could try to change the meausre :
2_Std Working Hours =
IF(
MAX(TimeDetail[full_name]) = "PersonA",20,40)
Measure = SUMX(SUMMARIZE('TimeDetail',[full_name],"1",[2_Std Working Hours]),[1])
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @electrobrit ;
You could try to change the meausre :
2_Std Working Hours =
IF(
MAX(TimeDetail[full_name]) = "PersonA",20,40)
Measure = SUMX(SUMMARIZE('TimeDetail',[full_name],"1",[2_Std Working Hours]),[1])
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That worked perfect! thank you
Hi,
Did you create the measure or column ?
I create the same column with Calculate statement and it seems it is working properly :
Thanks for your Kudos.
Please select it as a solution if it helps you.
@electrobrit , your "calculated column" is likely a measure since within a calculated column we typically don't use SELECTEDVALUE.
A typical calculated column would look similar to this:
2_Std Working Hours = IF(TimeDetail[full_name] = "A",20, 40)
Then you can create a measure to sum up that new calculated column:
TotalHours := SUM(TimeDetail[full_name])
A calculated column would have this icon:
A measure would have this icon:
Let me know if that helps!
It was a measure. Thank you for that little lesson.
So when I sum it up, I have it filtered by date and it's bringing back all the hours. It seems like typically Power Bi would do this automatically but it doesn't. Is my measure incorrect?
@electrobrit can you try posting your new measure?
Thank you!
Column: 2_Std Working Hours = IF(TimeDetail[full_name]="PersonA", 20, 40)
Measure:
Hi @electrobrit ,
Without seeing your model, I can only deduct that two possible reasons:
1. Your period_end_date field is not associated with your employee or resource type field.
2. Each employee has multiple records per period. For example, the first person has 17 records on 9/10/2022 while the last person has 4 records.
Could you supply a sample model?