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: 
AkshayShah
Contributor
Contributor

Combo chart dynamic measures selection

Hello

I am looking for a combo chart that dynamically adjusts its measures based on user selection. Using the bar chart, I can achieve what I want, but the combo chart is not working as expected.

Is there any way to resolve this issue using expression or variables

I have attached the sample report.

Below is the screen shot for reference.
If I am selecting multiple Products, combo chart is not showing the result.

AkshayShah_0-1709296672033.png

If I am selecting any one product it is working.

AkshayShah_1-1709296853439.png

Labels (4)
6 Replies
Antoine04
Partner - Creator III
Partner - Creator III

Hello,

I checked your qvf file.

It's not working because your field below is not visilbe in the chart.

Antoine04_0-1709302739328.png

You need to use another way. Let me try.

 

Regards,

Antoine

Antoine04
Partner - Creator III
Partner - Creator III

Would something like this resolve your problem ?

Antoine04_1-1709303015962.png

 

Regards,

Antoine

akshayshah11
Partner - Contributor
Partner - Contributor

Hi @Antoine04,

Thank you for your reply. However, this approach is not flexible, and there is no option to hide or show the measures in charts depending on user selection.
.

.

Antoine04
Partner - Creator III
Partner - Creator III

Hello @akshayshah11 ,

I managed to do it with the combo chart, as you can see below :

Antoine04_0-1709550215315.png

Here are the formulas measures you need to write :

- Books : If(WildMatch('$(=Concat(AdhocMes_FieldNames,' ,'))', '*Books*'), Sum(Books),0)

- Box : If(WildMatch('$(=Concat(AdhocMes_FieldNames,' ,'))', '*Box*'), Sum(Box),0)

- Glue : If(WildMatch('$(=Concat(AdhocMes_FieldNames,' ,'))', '*Glue*'), Sum(Glue),0)

- Pencil : If(WildMatch('$(=Concat(AdhocMes_FieldNames,' ,'))', '*Pencil*'), Sum(Pencil),0)

 

What do you think ? 😉

akshayshah11
Partner - Contributor
Partner - Contributor

Hi @Antoine04,

Is it feasible to keep other products out of Toot tip and Legend?
Antoine04
Partner - Creator III
Partner - Creator III

Unfortunately no, I would recommend to hide the legend and create your own with the text objet.

Regards,

Antoine