Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a requirement to eliminate null values in Pivot table in Qliksense.
I have used the below expression as measure.
Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,AC={'fieldfield'}>}SC &' ' &if(Unit='%','%'))
The Output as below.
There are some null value displayed as '-'. Could please help how Can I remove these Null values and change the background colour to grey for these values.
My Output Should like as below.
Note : I have unchecked the Include Null values in dimension Tab and Data Handling tab.
Thanks and Regards,
Kishore
if(isnull(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,AC={'fieldfield'}>}SC &' ' &if(Unit='%','%')))=-1,' ',
Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,AC={'fieldfield'}>}SC &' ' &if(Unit='%','%')))
Hi Pradosh,
Thanks for your reply.
I am sorry the above expression is not working and still I could see the null Values '-''.
Thanks,
SK
you have two expression ? what are those ? can u post the app with less data or dummy data?
In the expression properties maybe set the text and background colour expressions to display grey if the expression evaluates to null(). The dash for null will still be there, but not be visible and both the text and the background will be the same grey.
a dump idea ! let''s see if it works;
change ur expresseion as follow:
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,AC={'fieldfield'}>}SC &' ' &if(Unit='%','%'))&'hello'='hello','',Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,AC={'fieldfield'}>}SC &' ' &if(Unit='%','%')))
Hi Omar,
Its not working.
can you post sample for us to look into ?
I have used the below Background and Text Expressions but still I Could see the Null Values '-'.
Background Expression:
=if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Green'},Code={'Year'}>}Year),$(vGreen),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Amber'},Code={'Year'}>}Year),$(vAmber),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Red'},Code={'Year'}>}Year),$(vRed),RGB(128,128,128))))
Text Expression:
=if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Green'},Code={'Year'}>}Year),White(),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Amber'},Code={'Year'}>}Year),White(),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Red'},Code={'Year'}>}Year),White(),RGB(255,255,255))))
Maybe try like this :
Background Expression:
=if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Green'},Code={'Year'}>}Year),$(vGreen),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Amber'},Code={'Year'}>}Year),$(vAmber),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Red'},Code={'Year'}>}Year),$(vRed),RGB(128,128,128))))
Text Expression:
=if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Green'},Code={'Year'}>}Year),White(),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Amber'},Code={'Year'}>}Year),White(),
if(Only({$<Year={'$(=vlatestmnth)'},SC=,UT=,RAG={'Red'},Code={'Year'}>}Year),White(),RGB(128,128,128))))
If still no joy, then you probably need to post a sample qvf.