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
2,266 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
• 32,910 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,200 points
1,860 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,550 points
4,599 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
• 32,910 points
78 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
• 32,910 points
73 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,150 points
305 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 21, 2018 in Power BI by nirvana
• 3,150 points
1,386 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,550 points
398 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,290 points
433 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
• 32,910 points
297 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
• 32,910 points
5,198 views