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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.