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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
qliksensenoob
Contributor II
Contributor II

Restricting month rows to a range

Hi,

I'm new to Qliksense and have a problem i've been trying to find a solution on.

I am able to create a table such as the below which is pulled from an excel sheet to show in the visualisation. 

 

MonthABCRemarks
Apr-1994839552  
May-19102694956  
Jun-191005051757  
Jul-1992242509  
Aug-1994082338  
Sep-1977458256  
Oct-19118299281  
Nov-19110946264  
Dec-19887193  
Jan-2014265266  
Feb-207020425682060 
Mar-208868639582455 
Apr-2014805675583210 
May-2065484226385473 
Jun-2031624220087673Remarks are here
Jul-205723128887961 
Aug-205791931688277 
Sep-206100846788744 
Oct-207474845189195 
Nov-207254950089695 

 

However, i have 2 different sheets, one for FY2020 (Apr 2020-May 2021) and the other for FY2019 (Apr 2019-May 2020). I would like each sheet to restrict to the relevant rows that are shown. So for the first sheet FY2019 , i want it to show months Apr 2019 - May 2020 only such as the below. In fact, i have created the variable FY2019 to be ">=Apr-19<=Mar-20" and hoped to use this in the visualisation somewhere but can't figure out where or how.

In the visualisation i've added the columns as dimensions but not sure how i can further filter them to how i want them. Do help.

MonthABCRemarks
Apr-1994839552  
May-19102694956  
Jun-191005051757  
Jul-1992242509  
Aug-1994082338  
Sep-1977458256  
Oct-19118299281  
Nov-19110946264  
Dec-19887193  
Jan-2014265266  
Feb-207020425682060 
Mar-208868639582455 
Apr-2014805675583210 
May-2065484226385473 
1 Solution

Accepted Solutions
jwjackso
Specialist III
Specialist III

Define the Month dimension as If(Month>='19-Apr' and Month<='20.Mar',Month,Null()) and then suppress Nulls on the dimension.

Capture.PNG

View solution in original post

8 Replies
jwjackso
Specialist III
Specialist III

Define the Month dimension as If(Month>='19-Apr' and Month<='20.Mar',Month,Null()) and then suppress Nulls on the dimension.

Capture.PNG

qliksensenoob
Contributor II
Contributor II
Author

Thanks for the solution. Just a simple follow-up question. 

Why does Month>='19-Apr' work instead of Month>='Apr-19'?

jwjackso
Specialist III
Specialist III

Whenever I have problems with dates, I put them in a table or text box to see how the date is formatted.  In the table that you displayed, the Month field looks like 19-Apr.  You will need the IF test comparison to match the way the data is formatted.

qliksensenoob
Contributor II
Contributor II
Author

i notice when i copy the table to excel, the dates are formatted as 19-Apr which is what you see. Is that the way to check on how dates are formatted? If not, can you advise how you do it?

jwjackso
Specialist III
Specialist III

Load the table in Qlik Sense and then add the date field to a straight table.  This should show you the default format of the date.

qliksensenoob
Contributor II
Contributor II
Author

I'm so sorry to ask you this but i don't quite understand what you mean. I already loaded the table in qliksense after uploading an excel file but what i see is the below. Can i understand how you do it?

qliksensenoob_0-1626168137115.png

 

jwjackso
Specialist III
Specialist III

It looks like MonthTest is formatted as D/M/YYYY.  I suspect that the display format for Month is MMM-DD, but the actual data format is DD-MMM.

qliksensenoob
Contributor II
Contributor II
Author

ok so is there a way to find out the actual data format? Are you able to share the steps?