Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
teresadanna
Frequent Visitor

TOTALMTD() now showing nulls or missing

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 IDMonthHours
432January4
432September3
432October2
567January8
567September9
987February10
987March11
987April12

 

The list then shows:

 

Employee IDHours
4322

 

However I'd like it to show:

 

Employee ID 
4322
567 
987 

 

Its ok if 567 and 987 show 0s instead if blank, either works

1 ACCEPTED 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!

View solution in original post

3 REPLIES 3
v-ljerr-msft
Employee
Employee

Hi @teresadanna,

 

In addition, you should also be able to simply add "+ 0" to your formula to get the expected result. Smiley Happy

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!

Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=IF(ISBLANK(TOTALMTD(sum(Table[Hours]),[Date])),0,TOTALMTD(sum(Table[Hours]),[Date]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.