Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
tracycrown
Creator III
Creator III

Report record with blank date

Dear all

I am trying to generate a report containing records with blank ReqDate (ie. last two records) using if(ReqDate='',SO#) in dimensions but it does not work, please advise.

   

SO#OrdDateReqDateOrdAmt
100109/01/201414/01/2014200
100213/03/201422/03/2014300
100324/04/201428/04/20141,200
100424/06/2014200
100524/06/2014400

Thank you so much

Tracy  

1 Solution

Accepted Solutions
sunny_talwar

Although a more efficient method would be to use a set analysis expression:

Sum({<SO# = {"=Len(Trim(ReqDate)) = 0"}>}OrdAmt)

With SO#, OrdDate, ReqDate as Dimensions

Capture.PNG

View solution in original post

3 Replies
sunny_talwar

Try this as the calculated dimension:

=if(Len(Trim(ReqDate)) = 0,SO#)


Capture.PNG

sunny_talwar

Although a more efficient method would be to use a set analysis expression:

Sum({<SO# = {"=Len(Trim(ReqDate)) = 0"}>}OrdAmt)

With SO#, OrdDate, ReqDate as Dimensions

Capture.PNG

Not applicable

Tracy, add the Flag field on the table at script level.

Load

     [SO#],

     OrderDate,

     RequestDate,

     Amount,

     IF(Len(Trim(RequestDate)),1,0) as IsRequestDateBlank

From SourceTable

;

on UI, create calculated Dimension or Set expression to show blank request date

Calculated Diemension:

IF(IsRequestDateBlank=0,[SO#],null() and Select Suppress when Dimension Value is null on the dimension tab.

Set Expression:  Sum({<IsRequestDateBlank={0}>}Amount)

You really don't need a Flag field but if we have huge data set Flag with set analysis may give better performance.