Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
sarfaraz_sheikh
Contributor III
Contributor III

Making two date from one date based on assumption

Dear ALL,

I have the following data and I needs to calculate Start_Date and End_Date from Update date.

Input:  

Update dateTalisma NameTeam NameTL Name
31-Jan-16  Naresh   MedicalaThe AchieversKrunal Panchal
1-Feb-16Naresh MedicalaSilver HawksSumeet Chothani
22-Apr-16Naresh MedicalaThe VictoriousHemant Mohapatra

Output:

Start_date    End_Date                           TalismaName     TL_Name

31-Jan-16      31-Jan-16                          Naresh               KrunalPunchal

1-Feb-16        21-Apr-16                          Naresh               SummetChothani

22-Apr-16       11-May-16(Today()-1)         Naresh               HemantMohapatra

The logic behind the calculation is Update_date should get consider as Start_Date but for End_Date should get populate on the basis of nextdate-1  of Update_date field as wrote in my output.

Can anybody tell me how i can build the logic for the Same dynamically.

Help / Suggestion would be much appreciated if any !!

gwassenaar‌ , hic‌  , jagan‌  PLease comment

Regards

Sarfaraz

11 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

I can't open rar files from where I am currently working. Could you upload a zip?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sarfaraz_sheikh
Contributor III
Contributor III
Author

I don't have winzip installed in my machine ....for your reference i am attaching XL file.

Thanks

Sarfaraz