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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
praju179396
Contributor II
Contributor II

I want to show data like" if the user selectsJan 2022 the start date should be 31/12/2021 and the end date should be 31/01/2022.

Hello,

The requirement is like

if the user selects Jan 2022 the start date should be 31/12/2021 (start of the month [minus] 1 day) and the end date should be the end of the month ie. 31/01/2022.

 

2 Replies
JuanGerardo
Partner - Specialist
Partner - Specialist

Hi,

I suggest to use monthstart and monthend functions, something like this:

Sum({<MyDate={">=$(=MonthEnd(AddMonths(MyDate, -1)))<=$(=MonthEnd(MyDate))"}>} Sales)

JG

praju179396
Contributor II
Contributor II
Author

Thank you JuanGerardo.

But I want to apply logic in editor for the Month filter.

If I click on Jan it will work for entire dashboard.