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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ysiroong
Contributor III
Contributor III

Filtering off an Expression

Hi.

I'm trying to build a filter based off an expression field.  The field shows the net amount between two other values and I want to create a filter to exclude any records that return a zero amount.

The filter needs to be dynamic as I will be using other filters to limit the data set.  The full table contains other data points so I can't use the suppress zero values option.

For example, I have the chart below

t1.JPG

If I select a filter to reduce data in A Net, the table changes to

t2.JPG

I want the filter to now see the 0 variance in A to B Variance and drop the record from the chart.

Does anyone know of a way to do that?

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be something like this

If(A to B Variance Expression <> 0, A Net Expression)

If(A to B Variance Expression <> 0, B Net Expression)

A to B Variance Expression

Or you can use a calculated dimension like this

Aggr(If(A to B Variance Expression <> 0, [GL Code]), [GL Code])

jhoef-pv
Contributor III
Contributor III

Hi,

Dimensión:

If(VarA_B <> 0, [GL Code], null())


VarA_B is A to B Variance expression.

Captura.PNG