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.
I'm looking to include people who don't have hours for the prior month as blank or 0. Currently the measure looks like:
MTD Hrs = TOTALMTD(sum(Table[Hours]),[Date])
Data Example if today is 11/14:
Employee ID | Month | Hours |
432 | January | 4 |
432 | September | 3 |
432 | October | 2 |
567 | January | 8 |
567 | September | 9 |
987 | February | 10 |
987 | March | 11 |
987 | April | 12 |
The list then shows:
Employee ID | Hours |
432 | 2 |
However I'd like it to show:
Employee ID | |
432 | 2 |
567 | |
987 |
Its ok if 567 and 987 show 0s instead if blank, either works
Solved! Go to Solution.
Looks like this issue is the result of a bigger issue due to not having a single date table. Thanks all for your assistance though!
Hi @teresadanna,
In addition, you should also be able to simply add "+ 0" to your formula to get the expected result.
MTD Hrs = TOTALMTD ( SUM ( Table[Hours] ), [Date] ) + 0
Regards
Looks like this issue is the result of a bigger issue due to not having a single date table. Thanks all for your assistance though!
Hi,
Try this
=IF(ISBLANK(TOTALMTD(sum(Table[Hours]),[Date])),0,TOTALMTD(sum(Table[Hours]),[Date]))
Hope this helps.
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 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |