Calculate difference of 2 dates

0 votes
Find the number of days difference between 2 date fields?
May 23, 2019 in Tableau by Priyanka
652 views

1 answer to this question.

0 votes
Hi priyanka,

Use the datediff function to calculate difference in days or months or years.

Datediff('mode', start date field, end date field) here mode can be day, month or year.

DATEDIFF('day', [ORDER DATE], [SHIP DATE]) to get the difference.

Hope it helps.
answered Jun 5, 2019 by Sindhu

Related Questions In Tableau

0 votes
1 answer

Divide count of Table 1 by count of Table 2 on the same time interval

Use a custom SQL to create a ...READ MORE

answered Apr 12, 2018 in Tableau by QueenBee
• 1,820 points
1,065 views
0 votes
1 answer

How can I calculate the median of sales price using 3 variables in Tableau

First let me clarify things for you. ...READ MORE

answered Apr 12, 2018 in Tableau by xyz
• 1,560 points
7,026 views
0 votes
1 answer

How to calculate the percent of records within a group in tableau?

 You can click the measure SUM(Number of Records) and ...READ MORE

answered May 9, 2018 in Tableau by ffdfd
• 5,550 points
4,805 views
+1 vote
1 answer

How can I calculate the % of completion

SUM(IIF([Status]="Delivered",[Point],NULL)) / SUM([Point]) I assume that your column ...READ MORE

answered Jul 25, 2018 in Tableau by Atul
• 10,240 points
779 views
+1 vote
1 answer

How to calculate the number of hours worked in Tableau?

Try using this LOD expression {fixed user : ...READ MORE

answered Aug 4, 2018 in Tableau by ffdfd
• 5,550 points
1,485 views
0 votes
1 answer

Need to display monthly data excluding 2 months of data

Hi Anitha, 1. Drag and drop the respective year ...READ MORE

answered Mar 12, 2019 in Tableau by Cherukuri
• 33,030 points
590 views
+1 vote
1 answer

Date Logic in Tableau

Try this: Create 2 calculated fields for start ...READ MORE

answered Jul 27, 2018 in Tableau by ffdfd
• 5,550 points
1,270 views
0 votes
1 answer

How to color code cells of a column based on the text value in Tableau

You can use the following steps to ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
9,901 views
+2 votes
1 answer
0 votes
1 answer

Calculated filed with if-then

Below is the required code:  IF (NOT ISNULL([test2])) ...READ MORE

answered Mar 27, 2018 in Tableau by Atul
• 10,240 points
1,600 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP