Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

SET ANALYSIS

HI,

I need to creat this expression-

=Sum({<YearMonth={$(=Date(AddYears(MakeDate(max(Year),max(Month),1),-1),'YYYYMM'))}COMPONENTVALUE)


This expression work good

but i need not when YearMonth = Date(AddYears(MakeDate(max(Year),max(Month),1),-1),'YYYYMM'))

i need that YearMonth > Date(AddYears(MakeDate(max(Year),max(Month),1),-1),'YYYYMM'))

how should i do it?

adi

Labels (1)
4 Replies
ecolomer
Master II
Master II

Anonymous
Not applicable

=Sum({<YearMonth={">$(=Date(AddYears(MakeDate(max(Year),max(Month),1),-1),'YYYYMM'))"} >} COMPONENTVALUE)



sunny_talwar
MVP
MVP

May be this:

=Sum({<YearMonth={$(='>' & Date(AddYears(MakeDate(max(Year),max(Month),1),-1),'YYYYMM'))}>} COMPONENTVALUE)

sunny_talwar
MVP
MVP

Alternatively, why not just this?

=Sum({<YearMonth={$(='>' & Date(AddYears(Max(YearMonth), -1), 'YYYYMM'))}>} COMPONENTVALUE)