Datediff with column having no value blank

0 votes
Find the difference between dates that have completed project within milestone time else difference till today's date. How to do this?
May 8, 2019 in Power BI by Karthick
3,937 views

1 answer to this question.

0 votes
Hi Karthick,

Use the below DAX code -

datediff= IF(ISBLANK(table[Completed date].[Date]) = "TRUE", DATEDIFF(table[estimated date],TODAY(), DAY), DATEDIFF(table[completed date], table[estimated date], DAY))

The above code calculate the days difference i.e, estimated date - completed or todays date.

Hope it helps you.
answered May 8, 2019 by Cherukuri
• 33,010 points

Related Questions In Power BI

0 votes
1 answer

Excel Power Query: Using List.MatchAny on a column value

try this. let TableA = ...READ MORE

answered Oct 22, 2018 in Power BI by Annie97
• 2,160 points
2,631 views
+1 vote
1 answer

Have column with multiple values in powerBI, for use with a slicer in power bi

It can be achieved depending on the result you ...READ MORE

answered Oct 22, 2018 in Power BI by Hannah
• 18,570 points
6,014 views
0 votes
1 answer

Starts with characters in column

Hi Rahul, You can use condition such as ...READ MORE

answered May 21, 2019 in Power BI by anonymous
• 33,010 points
184 views
0 votes
1 answer

End with characters in column

Hi Rahul, You can use condition such as ...READ MORE

answered May 21, 2019 in Power BI by anonymous
• 33,010 points
172 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
583 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
1,857 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,570 points
649 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
758 views
0 votes
1 answer

Calculated column with the sum of values from many columns in a row

Hi, You can create a new column by ...READ MORE

answered Mar 14, 2019 in Power BI by Cherukuri
• 33,010 points
737 views
0 votes
1 answer

How can I get a column value from previous row in Power Query?

Hi Sindhu, add this line as your ...READ MORE

answered Mar 18, 2019 in Power BI by Cherukuri
• 33,010 points
6,148 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP