Find number of days between 2 dates

0 votes
How to find number of days between 2 dates?
Apr 8, 2019 in Power BI by sindhu
285 views

1 answer to this question.

0 votes

Hi Sindhu,

Create a column with below code. You can use datediff() to find the difference between dates.

day diff = DATEDIFF(Orders[Start Date].[Date],Orders[End Date].[Date],DAY)

Now add the column next to date fields to observe the value.

Hope this helps you.

answered Apr 8, 2019 by Cherukuri
• 32,910 points

Related Questions In Power BI

0 votes
0 answers

How to create a custom column for comparing between of 2 numbers?

Hi How do I create a custom ...READ MORE

Jun 28, 2019 in Power BI by Phalguni
• 1,020 points
107 views
0 votes
1 answer

Calculate Total number of Male & Female in the PowerBI report

To achieve what you are looking for, ...READ MORE

answered Feb 28, 2019 in Power BI by Upasana
• 8,620 points
2,767 views
0 votes
1 answer

How to Toggle Between Two Option and Make it Interact with the rest of the Visualizations in a Report?

Toggling is an action that is achieved ...READ MORE

answered Oct 20, 2020 in Power BI by anonymous
• 65,870 points
55 views
0 votes
1 answer

Max count of workspaces per one PRO user

Right now, it is 250, will be ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 18,550 points
121 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
313 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,403 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
407 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,310 points
444 views
0 votes
1 answer

Difference between the number of days user(client) has logged into the website.

Hi Rajesh, Use below code -  Column 4 = ...READ MORE

answered May 9, 2019 in Power BI by Cherukuri
• 32,910 points
83 views
0 votes
1 answer

Count - using If within period of dates.

Hi Sindhu, Use below DAX code to create ...READ MORE

answered May 8, 2019 in Power BI by Cherukuri
• 32,910 points
85 views