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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Stack Bar in Qlik sense

Hi all,

Please find attached excel sheet  I wanted to create a stack bar like attached in excel in Qlik Sense .

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
OmarBenSalem
Partner - Champion II
Partner - Champion II

1) create a master dimension for your field company, and assigne the colors u want to its values:Capture.PNG

2) in ur bar chart:

dim 1 = =ValueList('Growth','Sales LY','Sales CY')

dim2= your created master measure

as a measure :

if(ValueList('Growth','Sales LY','Sales CY')='Growth', num(Sum(Grow),'# ##0,00%'),

if(ValueList('Growth','Sales LY','Sales CY')='Sales LY', sum([Sale LY]),

if(ValueList('Growth','Sales LY','Sales CY')='Sales CY',sum([Sale CY]))))

under aspect :

Capture.PNG

result:

Capture.PNG

View solution in original post

3 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

1) create a master dimension for your field company, and assigne the colors u want to its values:Capture.PNG

2) in ur bar chart:

dim 1 = =ValueList('Growth','Sales LY','Sales CY')

dim2= your created master measure

as a measure :

if(ValueList('Growth','Sales LY','Sales CY')='Growth', num(Sum(Grow),'# ##0,00%'),

if(ValueList('Growth','Sales LY','Sales CY')='Sales LY', sum([Sale LY]),

if(ValueList('Growth','Sales LY','Sales CY')='Sales CY',sum([Sale CY]))))

under aspect :

Capture.PNG

result:

Capture.PNG

vikasmahajan
Author

Thanks perfect

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan
Author

Will  try and mark correct!!

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.