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: 
Not applicable

How can I define a conditional for a group in a bar chart ???

Hi Everybody ,

I have a question and I would appreciate your help please.

I have created a bar chart and a group with the fields 'AGENCY/SERVICE', I want define a conditional for show the bar chart1 when the selected group is AGENCY and show the bar chart2 when the selected group is SERVICE. The reason is because the valid expression for an agency is not the same than SERVICE and I want to show only one bar chart.
Many Thanks.

2 Replies
Not applicable
Author

Is this a cyclic group?

You can use the QlikView function GetCurrentField. Something like this should work:

If(GetCurrentField("Group Name") = 'AGENCY', AgencyExpression, ServiceExpression)


Not applicable
Author

Perfect !, This was just what I needed.
Many Thanks.