Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
eddywong71
Creator
Creator

How to retrieve the latest Balance from the new join customer

Hi All,

I want to retrieve the past 12 month new join customer with latest balance at line chart. For better understand , showed as below table.

Customer Join Month Latest Balance( May2023)
May 2023 100
Apr 2023 1000
March 2023  2000

 

I am using the expression in line chart  like below.

Dimension:

= Date([Month], 'MMM YY')

Expression

SUM({$<[New Customer Indicator] = {1}, 
Month = {"$(='>' & Date(MonthStart(Max(Month),-12)) & '<=' & Date(Max(Month)))"}>}[Balance]).

However this Expression will retrieve the data like below table

Customer Join Month  Balance
May 2023 100 (May 2023)
Apr 2023 50    (Apr 2023)
March 2023  100 (March 2023 )

.

Also i would like the user select the latest Balance Month For example:  Month select (Apr2023)

Customer Join Month Latest Balance( Apr2023)
Apr 2023 1000
March 2023  2000
Feb 2023 3000

 

 

Labels (2)
0 Replies