Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Number of days

Hello All,

I have  to show a straight table with 4 columns ( Product,Stage1,Stage2 and Stage3) 

In this table I need to show the total number of days the product was .which should be calculated from one date field . 

This is how my data is like .  If you look at the data  for the product Milk  in Stage1  the date is 01-01-2021  and this product Milk moved to stage 2 on 23-02-2021 and so on,  based on this we need to calculate the number of days  a product took to travel from one stage  to another . 

 

Date  Stage1 Stage2 Stage3
01-01-2021 Fruits Chocolate Rice
23-01-2021 Milk Fruits Chocolate
12-11-2021 Fish Milk Fruits

 

Thanks in Advance 

3 Replies
smilingjohn
Specialist
Specialist
Author

Hi Everyone,

Any suggestion on my  above post ?

Thanks

smilingjohn
Specialist
Specialist
Author

Hi All,

Any suggestion /Help ?

smilingjohn
Specialist
Specialist
Author

Hi All,

This is how I want to show the output in a table  , Currently I am calculating manually  by I want to know is there way to make it load in script or can we use in an expression ?

Product  Stage1 Stage2 Stage3
Milk 323    
Chocolate   22  
Fruits 23 323  
Rice