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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

6 Months Trend in Bar Chart

Hi Team,

Need your help in creating barchart which should show last 6 months data.

below are the columns

Regions      CalendarMonth      Sales

Canada        JAN2014               ***

Canada        FEB2014               -----

Canada        MAR2014              ****

--------------- and so on till DEC2014

USA           JAN2014               ****

USA           FEB2014               ------

USA           MAR2014               ****

--------------- and so on till DEC2014


Please help me with expression which gives me last 6 months sales with respect to region.


Thanks,

Rakesh.

3 Replies
Siva_Sankar
Master II
Master II

Rakesh,

Find the attached working example with your data. Ctreate a variable to compute last 6 months and use it in set analysis with your expression. Created a line chart also, good one for showing trend.

Not applicable
Author

Hi,

It will help u to complete u r task

in dimensions : regions

in Expressions: sum({<CalendarMonth = {JAN2015,FEB2015,MAR2015,APR2015,MAY2015,JUN2015}>} sales)

Hope it will help u.

Thanks and regards

Balaji.k

krishna20
Specialist II
Specialist II

Hi,

try this,

=sum({<CalendarMonth   ={"<=$(=(AddMonths(Max(CalendarMonth),-6)))"}>}Sales)