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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

May be this:

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

sunny_talwar

Alternatively, why not just this?

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