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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
ShellyG
Creator
Creator

Bar Chart with Variations for Date View

Dear All,

I will need your help and ideas with the following:

I have a simple combo chart with the following dimensions and measures:

Dimension - Report Date (which is a simple date field in the format of 'DD-MMM-YY')

Measure 1 - sum(Value)

Measure2 - count(Records)

The chart is working properly and shows correct amount. What I want to do is the following:

Instead of seeing the data for each date, I would like to:

1. See the last 14 days in the format of 'DD-MMM-YY'

2. See the last 6 weeks in average

3. See the rest in the form of monthly average

Please refer to the drawing uploaded for more clear view of what I would like to have...

Any ideas and suggestions on how to accomplish this are more than appreciated!

Labels (1)
1 Reply
ShellyG
Creator
Creator
Author

I believe it needs to be something like that: 

sum(aggr(if([Report Date] > (vScriptStart-14), sum(Value), Avg(Aggr(Sum(Value), Weeks))),[Report Date]))

But this doesn't work properly... 

Any ideas?