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

find the age

Hi all,

pod           Mydate         amount
A1-Nov-2016100
A1-Nov-2017200
A1-Nov-2018100
A1-Oct-201780
B24-Dec-201230011
B24-Dec-201522
B24-Dec-201428
C16-Sep-201334
C17-Sep-201312

 

How can i create a chart in Sense that has the sum(amount), latest mydate and Age(Latest mydatedate - Now())?

thanks

bhagi

Labels (4)
1 Reply
Chanty4u
MVP
MVP

you want this in script or front end?

Use below code in script n then try

 

Load Prod,

Max(MyDate) as  Newdate,

Sum(Amount) as Value,

Age(today(),max(Mydate)) as Age

 

From Source

Group by  Prod;

 

or

in stright table:

avg(today(),dte(max(mydate)))