Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

IF Statement for a Dimension in Chart Properties

If a value is blank or null return blank...

I have a date 12/31/9999  12:00:00 AM and I would like to say if this date exist return blank for the rows...I cannot get this to work. Help?

Chart Properties>Dimensions>Enable Conditional

=IF(termDt= '12/31/9999 12:00:00 AM' ,null(),termDt) Or

=IF(termDt= '12/31/9999 12:00:00 AM' ,'',termDt)

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You should probably do this in the script, e.g

     If(termDt= '12/31/9999 12:00:00 AM' ,null(),termDt) as termDt

HIC

View solution in original post

6 Replies
hic
Former Employee
Former Employee

You should probably do this in the script, e.g

     If(termDt= '12/31/9999 12:00:00 AM' ,null(),termDt) as termDt

HIC

buzzy996
Master II
Master II

i think the problem with date format, can u try some thing like

=IF(termDt= date#(('12/31/9999 12:00:00 AM','the format of required datetime stamp') ,null(),termDt)

Anonymous
Not applicable
Author

That worked, is there a way to remove the dash - from the data?

termDt

-

-

-

-

-

-

-

Not applicable
Author

Hi,

First condition is correct in dimensions tab.

=If(termDt= '12/31/9999 12:00:00 AM' ,null(),termDt)

maleksafa
Specialist
Specialist

select your dimension under the dimension tab and click on suppress when value is null

Anonymous
Not applicable
Author

Remove the null values----> Presentation tab remove Null Symbol in box. Thank you all for the help