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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Condition on suppress null

Hi,

I have 3 dimensions policy no,status,batch code in which i have to filter the data when batch code=T928 and apply suppress null on the null values but the problem is i have to show the policy no of status 'PR' in the chart where the batch code is null.

LOAD * INLINE [

    Policy no, status, Batch code

    123, IF, T928

    234, IF, T928

    456, PR

    567, PR

    789, IF, T928

    789, IF, T903

];

I have to made this changes on a straight chart so is there any way to restrict policy no of 'PR' status even after applying Suppress null.

8 Replies
HirisH_V7
Master
Master

Hi,

May be like this,

Supress Null and replace-241124.PNG

using calculated dimension,

=If([Batch code]='',[Policy no],[Batch code])

PFA,

Hirish

HirisH
Anil_Babu_Samineni

What was expected Result?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Policy NostatusBatch code
123IFT928
234IFT928
456PR -
567PR-
789IF T928

after applying suppress null i want to  show the policy no with status 'PR'  in chart.

HirisH_V7
Master
Master

May be this at your Status dimension,

=If([Batch code]='',status &'-'&[Policy no],status)

HirisH
Frank_Hartmann
Master II
Master II

have a look at the attached sample.

hope this helps

tamilarasu
Champion
Champion

Hi Mohd Bilal,

Dimensions:

policy no

status

[Batch code]

Expression:

If([Batch code]='T928' OR Len(Trim([Batch code]))=0,[Batch code],0)

Hide the expression column in presentation tab and make sure suppress Zero-Values is option enabled. See attached file for better understanding.

Untitled.png

susovan
Partner - Specialist
Partner - Specialist

You can also try this way,

Data:

LOAD * INLINE [

    Policy no, status, Batch_code

    123, IF, T928

    234, IF, T928

    456, PR

    567, PR

    789, IF, T928

    789, IF, T903

]

Where not Match( Batch_code,'T903')

;

Warm Regards,
Susovan
Anonymous
Not applicable
Author

You can use following expression by adding calculated dimension in straight table :

=if(len([Batch code])=0,[Policy no],[Batch code])

result will be following:

Policy nostatusBatch Code
123IFT928
234IFT928
456PR456
567PR567
789IFT928
789IFT903

Thanks,