Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jijig90
Contributor II
Contributor II

Drill down in 100% stacked bar chart

Hey community,

I have a filter pane containing

dimension "year": with option "only one selected value"

I want to create a 100% stacked bar chart with:

dimension1: years on X-axis with condition: 5 last years previous to the selected year in the filter.

dimension2: countries wih possibility to drill down into cities, so I created a dirll down "Country_city"

measure: market share (sales)

=> I put field "year" in stack dimension, and drill down "Country_city" in bars dimension

=> For the length of bars, my expression doesn't work:

=sum({< [Year]={"<=$(=max(Year))>=$(=max(Year-4))"}>}[Sales])
/sum({< [Year]={"<=$(=max(Year))>=$(=max(Year-4))"}>}Total<[Country],[city]>[Sales])

1-Because of the set {"<=$(=max(Year))>=$(=max(Year-4))"}, the bars are not clickable for the drill down country-city.

2- The result obtained is no good in terms of data.

I don't know what's wrong with my expression 😞

jijig90_0-1669894965367.png

Labels (3)
0 Replies