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: 
Not applicable

Show all preceding months

Hi,

   I need to shoe all preceding months  from the start of the year and current month sales when a month is selected. Eg, If Apr-2011 is selected,  we should dsiplay Jan-2011,Feb-2011,Mar-2011 and Apr-2011. Any help is appreciated. Thanks.

Labels (1)
3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi

     Sum({<Year={$(=Max(Year))},Date={"<=$(=vCurrentDate)"}>} Sales)

Hope this helps

Celambarasan

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

Sum({<Year={$(=Max(Year))}, Month=, Date={"<=$(=Max(DateField))"}>} Sales)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi!

Try This,

PFA for Help.

Expression: Sum({<MonthYear,Date=, Year=,MonthNo.={$(vtest)}>}Sales)

vtest=concat({1<MonthNo.={">=1<=$(=max(MonthNo.))"}>} distinct MonthNo.,',')

Dimension:MonthYear