Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
guster999
Creator
Creator

Qlik sense Action button for last 6mths data

HI,

I need to link an action to a navigation button (available under Qlik dashboard bundle in custom objects) that will trim my chart to show only the last 6mths, my date field is is format DD/MM/YYYY.     

what action do a choose?  e.g. multiple values in a field , select variable value?

and what expression do I require?

thanks

Gus

 
 

 

 

2 Replies
dwforest
Specialist II
Specialist II

Its been my experience that the Nav Button doesn't work with dates easily, so it makes it much easier if you add to your master calendar a field for MonthsFromCurrent  using Round((num(monthstart(Today(1))-num(monthstart(Date(TempDate)))))/30) in the load script.

Then the action on the button would be:

Action: Select a Value in Field

Field: MonthsFromCurrent

Value: >0<=6

guster999
Creator
Creator
Author

Thanks for that , I have attached an example file as I still have a few queries.

So I have a field called MonthsFromCurrent loading fine as part of master calendar, and have attached this to the nav button (select a value in field) as an action.

  • It is not linked with my mth dimension that I want to show on the chart, how do I do this so that my chart shows mths on the x axis rather than the number outputs 2-6 for MonthsFromCurrent?
  • The other problem is that is treating the data set as a whole due to mth not showing as a dimension on the chart, whereas I need to show the top left chart on my page (but with only the 2nd half of 2019)

cheers, Gus