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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everybone,
Well, in my model, i have a column call "Horas Trabajas" it mean "Work Hours".
I want to know the extra hour my employments do, so if the work more than 160 hours per month, they are getting extra hours.
I do this but the summatory its wrong.
As you can see, they dont have extra hours but the summory is 4.021,72 hours.
This is the formula y used:
Hi @mmelerof
please try
Horas Extras =
SUMX (
VALUES ( 'Enero 2023'[Empleado] ),
CALCULATE (
VAR Extras =
SUM ( 'Enero 2023'[Horas Trabajadas] ) - 160
RETURN
IF ( Extras > 0, Extras, 0 )
)
)
This is the formula y used:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 6 | |
| 6 |