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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
seunao
Regular Visitor

Date in table displaying 01/Jan/1900 instead of blank

Hello,

I am new to Power BI and DAX, and decided to work on creating a ServiceNow dashboard for my service desk in power bi.

 

I have issues with the below and will be grateful for any assistance.

 

I am importing my data from SQL into power bi, and I need to create several measures to help build the dashboard.

 

The first which I am having a challenge with is: "Average days to resolve". the issue I am experiencing is that my table is displaying blank values as 01 Jan 1900. I will like to write a formula that ignores this date and identifies the cell as blank, therefore not use this in the calculation.

 

Resolved date when blank displays = 01 Jan 1900

The resolved time when blank displays = 00:00:00

 

to solve this, I created the below metric to measure the elapsed time:

 

Elapsed time(opened- resolved) = 
    DATEDIFF(min(Incident[Opened Time]),min(Incident[Resolved Time]),Day)

 

 

i then add the elapsed time to the opened date to find the average.

 

Avg. Days to Resolve = 
AVERAGEX (Incident ,
                        DATEADD( Incident[Opened Date], [Elapsed time(opened- resolved)], DAY )
                        )

 

 

I need help with excluding the blank cells (01 Jan 1900) from the DAX formula

 

NumberOpened DateResolved Datenumber of days in between
inc0227 Jan 202128 Jan 20211
inc0328 Jan 202129 Jan 20211
inc0410 Feb 202101 Jan 1900-44235
inc0511 Feb 202101 Jan 1900-44226

 

Thank you for helping with this.

 

1 ACCEPTED SOLUTION

@amitchandak  - sorry i sent a reply on Saturday but seems my browser timed out and I was unaware. 

 

I was unable to get the filter to work but that is probably more me not know how to apply it. 

 

i went about it this way 

Avg Days to Resolve = AVERAGEX(FILTER(
    'Incident',
    DATEDIFF('Incident'[Opened Date],'Incident'[Resolved Date],Day)>0),
        DATEDIFF(Incident[Opened Date],Incident[Resolved Date],DAY))

 

Thanks for your help

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@seunao , a filter like this can help

filter(Table, not(isblank([Resolved Date]) ) && [Resolved Date]<> date(1900,01,01))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  - sorry i sent a reply on Saturday but seems my browser timed out and I was unaware. 

 

I was unable to get the filter to work but that is probably more me not know how to apply it. 

 

i went about it this way 

Avg Days to Resolve = AVERAGEX(FILTER(
    'Incident',
    DATEDIFF('Incident'[Opened Date],'Incident'[Resolved Date],Day)>0),
        DATEDIFF(Incident[Opened Date],Incident[Resolved Date],DAY))

 

Thanks for your help

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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