Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
d_koti24
Creator II
Creator II

barchart exp

I have requirement like bar chart should display sales of latest year sales(by default).But the

year goes to next year if data is get changed then it should be automatically get changed. client

no need to come to us for changing date .So I want data to be year to be changed dynamically,

suppose I have sent you biggest year is 2011. So by default I want that.

Check the screen shot and find Data source.

3 Replies
sundarakumar
Specialist II
Specialist II

this can be done with set analysis

sum({<year={$(=max(year))}>}sales)

Reagrds,

Sundar

Not applicable

HI,

Try this,

Sum({<Year = {'$(=Max(Year))'}>} Sales)

If the max year would not be change even you do filter on date filed then try the below.

Sum({1<Year = {'$(=Max(Year))'}>} Sales)

d_koti24
Creator II
Creator II
Author

Thank u boss