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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
LP27
Creator II
Creator II

Displaying 6 months data in Bar chart

Hi Qlikers,

<Qlik Sense>

I have got Bar chart with Group as Store_Names, Bar as MonthYear and measure as Sum(Sales).

[MonthYear format is MMM-YY] in data.

I need to display only 6 months data in bar chart. Could some one guide me how I can do this and where i should write the expression and so on.

Note: I am new to Qlik Sense environment.

Thanks in advance,

LP

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be using set analysis

Sum({<MonthYear = {">=$(=Date(MonthStart(Max(MonthYear), -5), 'MMM-YY'))<=$(=Date(Max(MonthYear), 'MMM-YY'))"}>} Sales)

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

May be using set analysis

Sum({<MonthYear = {">=$(=Date(MonthStart(Max(MonthYear), -5), 'MMM-YY'))<=$(=Date(Max(MonthYear), 'MMM-YY'))"}>} Sales)