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: 
Dr_T
Contributor
Contributor

Date range selection for KPI chart

How do you make a fixed date selection in for KPI chart, for instance from 2021-01-01 to 2021-03-01?

Next how do you do it dynamically for to date values for instance?

Thanks

Labels (1)
1 Reply
MayilVahanan

@Dr_T 

Try like below

For Hard code:

=Sum({<Date={">=2020-01-01 <= 2021-03-01"}>}Yourexpression)

For Dynamic:

Its depends on your requirement, for ex: Sales per current year

=Sum({<Date={">=$(=YearStart(Max(Date))) <= $(=Date(Max(Date),'YYYY-MM-DD'))"}>}Sales)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.