Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
joris_lansdaal
Contributor

Help - suppress nulls

Hi all,

I'm a bit stuck. Let me introduce my challenge with below graph.MAT.PNG

I don't want May-2016 in my analysis because I only want closed months and not the running month.This means i want a Null in May which are suppresed

M36Flag is used flag the last 36 closed months

Two expressions are used:

Volume=If(M36Flag=0,Null(),sum($(VarFact))/1000*$(VarFactor))

Trend= If(M36Flag=0,Null(),below( sum({<M36Flag={1}>} $(VarFact)),0,12) /1000*VarFactor)

The first works fine, but I dont understand why Trend is not Null in May2016.

Any suggestions?

thanks Joris

1 Solution

Accepted Solutions

Re: Help - suppress nulls

That is just so strange... Would you be able to post a sample? Or may be try recreating the chart from scratch and try with the trend expression first

13 Replies

Re: Help - suppress nulls

Are you sure May-2016 have M36Flag = 0? Is there a possibility that it has 0 and 1 both assigned to it?

joris_lansdaal
Contributor

Re: Help - suppress nulls

i'm pretty sure, yes. And because the logic is correct in Volume i'm confused.

Re: Help - suppress nulls

Null in volume could be because of the expression itself. Can you create a straight table with the same dimension as this chart and add two expressions:

Count(DISTINCT M36Flag) and

Concat(DISTINCT M36Flag, ', ')

and share a screenshot for May-2016

joris_lansdaal
Contributor

Re: Help - suppress nulls

concat.PNG

Re: Help - suppress nulls

Can you add the trend expression to the above straight table and see if you get null or not?

If(M36Flag=0, Null(), Below(Sum({<M36Flag={1}>} $(VarFact)),0,12) /1000*VarFactor)

joris_lansdaal
Contributor

Re: Help - suppress nulls

concat2.PNG

joris_lansdaal
Contributor

Re: Help - suppress nulls

I also have a background color expression.

if(Monthstart(MonthYear)<=AddMonths(Today(),-Count(Distinct TOTAL(MonthYear))+13),ARGB(0,252,115,98))

Would that cause issues?

Re: Help - suppress nulls

Ya, why don't you try adding the same if condition to your background expression as well:

If(M36Flag=0, if(Monthstart(MonthYear)<=AddMonths(Today(),-Count(Distinct TOTAL(MonthYear))+13),ARGB(0,252,115,98)))

joris_lansdaal
Contributor

Re: Help - suppress nulls

MAT3.PNG

Doesn't work.