Qlik Community

Ask a Question

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a variance flag

Hi All,

I have an example pivot table where i am applying a flag to an account in a summary pivot table.

The flag indicates whether or not the account is over 25k in variance for YTD. I want to be able to utilise a list box, whereby a user can select '25k var' and see all accounts which satisfy this criteria. The problem is, i need the formula to evaluate on an account by account basis rather than at any other level of granularity.

Not sure whether it is a jet lag, but i can't think of a solution to this problem. any ideas?

error loading image


The existing formula is as follows;

fabs(Sum(if (InYearToDate(TranDate, vMaxDate, 0), (TranAmount * Split)))
Sum(if (InYearToDate(TranDate, vMaxDate, 0), (BudAmount * BudSplit))))
'25k var')

1 Reply

Hi, Matt,

maybe the classfunction helps?

class( expression, interval [ , label [ , offset ]] )

Creates a classification of expressions. The bin width is determined by the number set as interval. The result is shown as a<=x<b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in label. 0 is normally the default starting point of the classification. This can be changed by adding an offset.


class( var,10 ) with var = 23 returns '20<=x<30'

class( var,5,'value' ) with var = 23 returns '20<= value <25'

class( var,10,'x',5 ) with var = 23 returns '15<=x<25'