Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Tableau
  3. Question
Tableau

How to find the total days from sales date to ship date

Asked by James Leeming Dec 15, 2019 1.6K views 1 answer
Share

Your answer

1 Answer

Asutosh Jha JanBask Expert Latest answer

Answered on Nov 13, 2019

You can achieve this with the help of the calculated field. We have datediff() function which can be used to calculate the difference.

Syntax: DATEDIFF(date_part, date1, date2, [start_of_week])

And so, you can write like: DATEDIFF(‘day’, order_date, ship_date)


Was this helpful?

More Tableau discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Tableau Blogs

Guides, tips and career advice on Tableau from JanBask experts.