Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

To Add Calculated field on the basis of Existing fields

Hi,

I am new on Qlikview, I want to add one Calculated field on the basis of existing fields.

I have fields (1-sep , 2-Sep, 3-Sep, 4-Sep .....30-Sep)

I want to add One field (Yesterday Date) & If yesterday Date is matching with any of the Field then it should take Data of that field only.

Please help.

Thanks,

Narsingh

4 Replies
Not applicable

Re: To Add Calculated field on the basis of Existing fields

Help Anyone please....

Re: To Add Calculated field on the basis of Existing fields

HI

Load * ,if(date(today()-1,'DD-MMM') = DateField, 1 ,0 ) as FieldName from table;

Hope that helps

Not applicable

Re: To Add Calculated field on the basis of Existing fields

Thanks for reply...

But I have Date field in Column Headers as

Name     12-Oct     13-Oct     14-Oct     15-Oct     16-Oct

A               x               y               z               p          q         

B               p               z               y               x          q    

C               y               x               z               q          p

And I want Data of that Column where "Date" is Yesterday...

Re: To Add Calculated field on the basis of Existing fields

HI

Try like this

crossTest:

CrossTable(CrossDate,CrossValue)

Load * Inline

[

Name,12-Oct,13-Oct,14-Oct,15-Oct,16-Oct

A,x,y,z,p,q  

B,p,z,y,x,q   

C,y,x,z,q,p

];

Load *, if(date(today()-1,'DD-MMM') = CrossDate, CrossValue ,0 ) as reqValue Resident crossTest;

Drop Table crossTest;

Hope that helps

Community Browser