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 in Power BI by Karthick
49 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 by Cherukuri
• 19,510 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,190 points
153 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
• 14,090 points
1,596 views
0 votes
1 answer

Starts with characters in column

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

answered May 21 in Power BI by anonymous
• 19,510 points
18 views
0 votes
1 answer

End with characters in column

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

answered May 21 in Power BI by anonymous
• 19,510 points
16 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,060 points
68 views
0 votes
1 answer

Unable to install connector for Power Bi and PostgreSQL

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

answered Aug 21, 2018 in Power BI by nirvana
• 3,060 points
535 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
• 14,090 points
99 views
0 votes
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
• 39,150 points
91 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 in Power BI by Cherukuri
• 19,510 points
27 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 in Power BI by Cherukuri
• 19,510 points
236 views