Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rammuthiah
Creator III
Creator III

Period Selection

If I select the month of march 2019, then the selection should be from 26th feb to march 25th 2019. 

Please find sample data below :

MonthValues
12/24/20187
12/25/20183
12/26/20188
12/27/20181
12/28/20184
12/29/20189
12/30/20188
12/31/20182
1/1/20194
1/2/20198
1/3/20199
1/4/20192
1/5/20195
1/6/20199
1/7/20197
1/8/20195
1/9/20191
1/10/20192
1/11/20194
1/12/20198
1/13/20198
1/14/20191
1/15/20198
1/16/20198
1/17/20194
1/18/20191
1/19/20198
1/20/20193
1/21/20191
1/22/20194
1/23/20194
1/24/20196
1/25/20199
1/26/20191
1/27/20196
1/28/20195
1/29/20196
1/30/20198
1/31/20192
2/1/20191
2/2/20192
2/3/20199
2/4/20198
2/5/20197
2/6/20195
2/7/20191
2/8/20193
2/9/20198
2/10/20199
2/11/20192
2/12/20196
2/13/20199
2/14/20198
2/15/20191
2/16/20198
2/17/20191
2/18/20197
2/19/20195
2/20/20199
2/21/20194
2/22/20198
2/23/20198
2/24/20199
2/25/20195
2/26/20199
2/27/20196
2/28/20191
3/1/20195
3/2/20199
3/3/20198
3/4/20194
3/5/20193
3/6/20199
3/7/20195
3/8/20195
3/9/20197
3/10/20193
3/11/20198
3/12/20193
3/13/20191
3/14/20199
3/15/20197
3/16/20196
3/17/20192
3/18/20197
3/19/20194
3/20/20194
3/21/20198
3/22/20195
3/23/20199
3/24/20198
3/25/20194
3/26/20197
3/27/20194
3/28/20195
3/29/20194
3/30/20198
3/31/20198
4/1/20194
4/2/20196
4/3/20191
4/4/20192
4/5/20198
4/6/20196
4/7/20199
4/8/20191
4/9/20193
4/10/20193
4/11/20198
4/12/20196
4/13/20199
4/14/20197
4/15/20198
4/16/20192
4/17/20195
4/18/20192
4/19/20197
4/20/20192
4/21/20192
4/22/20197
4/23/20199
4/24/20191
4/25/20195
4/26/20191
4/27/20195
4/28/20198
4/29/20195
4/30/20192
5/1/20198
5/2/20191
5/3/20193
5/4/20197
5/5/20193
5/6/20192
5/7/20199
5/8/20198
5/9/20196
5/10/20196
5/11/20195
5/12/20198
5/13/20192
5/14/20199
5/15/20198
5/16/20193
5/17/20198
5/18/20194
5/19/20193
5/20/20195
5/21/20193
Labels (1)
1 Solution

Accepted Solutions
rammuthiah
Creator III
Creator III
Author

Hi,

simple if condition solved my problem.

if(date>26,addmonths +1) as NextMonth

View solution in original post

6 Replies
dplr-rn
Partner - Master III
Partner - Master III

Not enough information my friend.
- Whats the logic behind what you are seeking to do. e.g. whats the output when you select another couple of months
- How do you want it filtered? the whole application or only on 1 visualization
Answer depends on details maybe set analysis or do soemthing on script side
rammuthiah
Creator III
Creator III
Author

I want to be apply for whole application by selecting latest month(maximum month) and have to calculate the value accordingly.

For instance : I am Selecting the month of april :
the the value from Mar 26th - April 25th, should be calculated. The sum of above given data for the period is 159.
dplr-rn
Partner - Master III
Partner - Master III

let me repharse whats the logic behind your time periods. March 26th-April 25th
if it is sum of selecte month its just a question of create a Month column in your data
Sue_Macaluso
Community Manager
Community Manager

@rammuthiah  Are you using QlikView or Sense?  I would like to move this into the correct product related forum. Thanks

Sue Macaluso
rammuthiah
Creator III
Creator III
Author

Qlik Sense

rammuthiah
Creator III
Creator III
Author

Hi,

simple if condition solved my problem.

if(date>26,addmonths +1) as NextMonth