Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
RicardoVD97
Contributor
Contributor

show hide bars in a chart using conditional expression

Hi comunnity!

I'm working on Qlikview migration to Qliksense, I have some charts with this condition where the bars are hide, but when user selects the year in filter pine tool, the bars are shown so you can see the difference between two dimensions.

I'm trying to replicate this operation in Qliksense but I have not fount the solution. I have use "Data handling" option, but it only let me do it with all the chart, not only an especific dimensions. Here are some images from the charts and expressions, thanks!

RicardoVD97_0-1666116683635.png

 

 

RicardoVD97_1-1666116702369.png

RicardoVD97_2-1666116722194.png

 

  

 

Labels (1)
4 Replies
RafaelBarrios
Partner - Specialist
Partner - Specialist

HI @RicardoVD97 

i think this is not available by default

but, you can try this

1. create a variable vSetMeasure

2. create master measures, for me i will create Quantity Delivery, Quantity Planned, Quantity Sent, Quantity Produced

3. Create a variable object

RafaelBarrios_0-1666121282636.png

and config as follow

RafaelBarrios_1-1666121380461.png

Dynamic Values
='[Quantity Delivery]~Delivery|[Quantity Planned]~Planned|[Quantity Sent]~Sent|[Quantity Produced]~Produced'

 

4. to your bar chart object set dimension you need

5. in bar chart, use the following as measure

=$(vSetMeasure)

and you could use this as title

='$(vSetMeasure)'

RafaelBarrios_3-1666121533605.png

 

RafaelBarrios_4-1666121598212.pngRafaelBarrios_5-1666121611849.png

6. Set a default for your variable so always shows something

RafaelBarrios_6-1666121688988.png

 

hope this works for you.

best,

Ryan69
Contributor
Contributor


@RicardoVD97 wrote: Dashboard Anywhere Chrysler

Hi comunnity!

I'm working on Qlikview migration to Qliksense, I have some charts with this condition where the bars are hide, but when user selects the year in filter pine tool, the bars are shown so you can see the difference between two dimensions.

I'm trying to replicate this operation in Qliksense but I have not fount the solution. I have use "Data handling" option, but it only let me do it with all the chart, not only an especific dimensions. Here are some images from the charts and expressions, thanks!

RicardoVD97_0-1666116683635.png

 

 

RicardoVD97_1-1666116702369.png

RicardoVD97_2-1666116722194.png

 

  

 


I'm also facing the issue, please help me to resolve this issue.

RafaelBarrios
Partner - Specialist
Partner - Specialist

hi @Ryan69 

try the example below

elainao
Contributor
Contributor


@RafaelBarrios wrote:

hi @Ryan69  Five Nights at Freddy's

try the example below


You are welcome, I am happy to help out