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: 
anat
Master
Master

top n records in bar chart

hi , source data:     LOAD * Inline  [  Year,Loc,Sales,Target  2015,a,100,200  2015,b,250,150  2015,c,50,100  2016,a,250,200  2016,b,200,20  2016,c,350,200  2016,d,10,5  2017,a,300,200  2017,b,100,300  2017,c,400,200  ]  ;  need output like below in  bar chart:   Year Loc Sales Target 2017 c 400 200 2017 a 300 200 2016 c 350 200 2016 a 250 200 2015 b 250 150 Requirement: top 5 records based on sum(Sales) and year descending order. dimensions: Year,Loc Expression : for Sales =Sum({} Target) in table output coming properly but when i create bar chart output not in required format.

3 Replies
anat
Master
Master
Author

linking to existing thread: https://community.qlik.com/thread/291823

arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Anant,

Please share expected output in bar chart sample.

Thanks ,

Arvind Patil

anat
Master
Master
Author

Hi Arvind,

PFA...the expected output in bar chart.