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

Dynamic Waterfall Chart with Date selections

Hi,

A couple of things I am trying to figure out:

  • I am trying to figure out how to change my waterfall chart to be dynamic so when I select a date for MonthYear Start, it will start the chart with that month.  Same thing for MonthYear End, it will end it at that point. 
  • My month totals are currently hardcoded and I can't figure out the set analysis to get an active headcount or forecast.
  • My new hires, terms, pending and active totals are using set analysis, however, the date ranges are hardcoded in there.  I am not sure how to change so that when new data is entered, it can automatically fill out the chart instead of going in and adding "between date ranges" in the dimension.

Data is attached in a model view format.

 

1 Solution

Accepted Solutions
anthonyj
Creator III
Creator III

Hi,

I  noticed that your Month Start and Month End both come from the same column (CalendarYearMonth) so choosing a date from the Start will also select your end filter.

I've added a set analysis that you can add to your existing measures and set analysis to take the minimum and maximum.

For example

count({$<Date={">=$(=monthstart(min(Date)))<=$(=monthend(max(Date)))"},[Column]={'New Hires'}>}ID])

For this to work however you'll need to select a range in CalendarYearMonth and not just the start and end date.

Regards 

Anthony

View solution in original post

1 Reply
anthonyj
Creator III
Creator III

Hi,

I  noticed that your Month Start and Month End both come from the same column (CalendarYearMonth) so choosing a date from the Start will also select your end filter.

I've added a set analysis that you can add to your existing measures and set analysis to take the minimum and maximum.

For example

count({$<Date={">=$(=monthstart(min(Date)))<=$(=monthend(max(Date)))"},[Column]={'New Hires'}>}ID])

For this to work however you'll need to select a range in CalendarYearMonth and not just the start and end date.

Regards 

Anthony