Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mogaka1234
Contributor
Contributor

Sum and age on latest transaction

Customer           Tdate          Value
A1-Nov-2015150
A1-Nov-2016200
A1-Nov-2017100
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(value), latest Tdate and Age(Latest Tdate - Now())?

Please assist.

1 Solution

Accepted Solutions
Quy_Nguyen
Specialist
Specialist

Is this what you need

Capture.PNG

View solution in original post

7 Replies
shraddha_g
Partner - Master III
Partner - Master III

Use below code in script n then try

Load Customer,

Max(Tdate) as Latest_Tdate,

Sum(Value) as Value,

Age(today(),max(Tdate)) as Age

From Source

Group by Customer;

mogaka1234
Contributor
Contributor
Author

I am not able to access the source thus i cant do it from load statement.

agigliotti
Partner - Champion
Partner - Champion

what chart type you are planning to use ?

mogaka1234
Contributor
Contributor
Author

Just a table

antoniotiman
Master III
Master III

May be this

Quy_Nguyen
Specialist
Specialist

Is this what you need

Capture.PNG

agigliotti
Partner - Champion
Partner - Champion

could you please post a screenshot of your expected result?