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: 
davinfrost
Contributor III
Contributor III

sum last date in selected months

hi guys, 

i want to ask , how to sum a specific date on every month ,

in this case i want sum every last date on every month,

for example, if i filtered january,february and march, that means it will sum on 01/31 , 02/28, 03/31.

for now i only use this condition

 

sum(
{<
FLAG_TRANS={'Outstanding'},
Year={'$(=max(Year))'}
>}
OOWING)

 

any help? 

thanks

1 Solution

Accepted Solutions
andrey_krylov
Specialist
Specialist

sum(

{<
Date={"=If(Date=Text(Date(MonthEnd(Date))), Date)"},
Year={'$(=max(Year))'}
>}
OOWING)

View solution in original post

3 Replies
namratam3
Contributor II
Contributor II

=if(getselectedcount(month)>0,sum({<year={"$(=max(year))"},date={"$(=monthend(date))"}>}OOWING),sum({<year={"$(=max(year))"}>}OOWING))

andrey_krylov
Specialist
Specialist

sum(

{<
Date={"=If(Date=Text(Date(MonthEnd(Date))), Date)"},
Year={'$(=max(Year))'}
>}
OOWING)

davinfrost
Contributor III
Contributor III
Author

cool, thanks mate