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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jp_afc
Contributor II
Contributor II

Set graph to start on specific date

I have data that starts from 01/03/2014 but I want my line graph to start from 01/01/2020 to current date, how would I do this?

I want to create a line graph showing number of incidents that occurred each day start from 01/01/2020

Labels (1)
  • Other

1 Solution

Accepted Solutions
Zapparoli
Creator II
Creator II

Hello Jp_afc,

In this case, you have some options.

The first one is working on your measure. You can specify a set Analysis with a data range >= than 01/01/2020 inside your measure, this will make only date greater than 01/01/2020 to appear on your chart.

You can also create a new dimension in the script like:

if(My_Date_Field < 01/01/2020, null(), My_Date_Field) as New_Date_Field.

Personally I would work on my measure instead of going to script on this one.

Hope this helps.

-Zapparoli 

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

View solution in original post

3 Replies
NiTo
Creator
Creator

Hi Jp,

Interesting question. I would also like to see the answer for this one. Hope you get a reply soon.

 

Zapparoli
Creator II
Creator II

Hello Jp_afc,

In this case, you have some options.

The first one is working on your measure. You can specify a set Analysis with a data range >= than 01/01/2020 inside your measure, this will make only date greater than 01/01/2020 to appear on your chart.

You can also create a new dimension in the script like:

if(My_Date_Field < 01/01/2020, null(), My_Date_Field) as New_Date_Field.

Personally I would work on my measure instead of going to script on this one.

Hope this helps.

-Zapparoli 

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

jp_afc
Contributor II
Contributor II
Author

Perfect. Thank you for your help using the set analysis method worked.