Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Highlighted
vkesavan1
New Contributor

Conditional Chart Display

I have a case where I have to display the speed of a vehicle - (Vehicle_speed) under the condition that , Ignition is in "Off" position. How do I create a count function that would show this?

2 Replies
Claudiu_Anghelescu
Contributor III

Re: Conditional Chart Display

=if(Ignition='Off', Vehicle_speed)

or you can attach a sample
To help community find solutions, please don't forget to mark as correct.
Partner
Partner

Re: Conditional Chart Display

What kind of aggregation where you planning to use? Is presented in a way that only one value is available per row in your table or so you need to aggregate the speed using an maximum, minimum or average value? In the answer below I assume that multiple values is returned and thereby I use an average.

= average({<Ignition={'Off'}>}Vehicle_speed)

If a single value is assumed returned you can use only() in a similar way.
= only({<Ignition={'Off'}>}Vehicle_speed)
#OnVacation #BetweenJobs.
Please ekskuse my Norglish and Swenglish typos.