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

This widget could not be displayed.

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selected Month - Previous Month

Hi

    I have data from 2007 to 2012,  whenver i will select any month from any year i want update the sheet with selected month and previous month....so how can we use the set analysis here...

This widget could not be displayed.
2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi Anil,

Check this expressions

For Previous Month

=Sum({<Year=, Month=, DateOfService={'>=$(=MonthStart(Max(DateOfService), -1))<=$(=MonthEnd(Max(DateOfService), -1))'}>} Sales)

For Current Month

=Sum({<Month=, Year=,DateOfService={'>=$(=MonthStart(Max(DateOfService)))<=$(=Max(DateOfService))'}>} Sales)

Hope this helps you.

Regards,

Jagan.

This widget could not be displayed.
daveamz
Partner - Creator III
Partner - Creator III

Hello,

     See the example in the file attached.

Regards,

David

This widget could not be displayed.