Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Script Issue

Hi friends;

I attach herewith My Qv Document and suppoting excel sheet. My output Pivot talbe is as follows

POLICY_NOPOLICY_YEARPERIOD_TOISSUE_DATEI_DATEC_DATECAN_DATEGROSS_PREMIUMREFUNDS
NM00071H0000010721-04-1720-04-1620/4/2016--11,6960
NM00071H0000010721-04-17--30/4/2016NA0-11,696
NM00141D00002381425-03-1725-03-1625/3/2016-20/4/201613,9340
NM00141D00002381425-03-17--20/4/2016NA0-13,934

In the above table CAN_DATE is blank in the very first row where as it should appear like in row number 3. Pls check my document and advise me how to correct it.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

It does work.

Have a look at the attached application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

8 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Change below code:

cdate:

Mapping load trim(POLICY_NO),trim(C_DATE)

Resident tmp;

Add where condition as below.

cdate:

Mapping load trim(POLICY_NO),trim(C_DATE)

Resident tmp where not IsNull(C_DATE) ;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
upaliwije
Creator II
Creator II
Author

Can my expert friends pls give an advice ?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Did you try the script I gave you in above post?

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
upaliwije
Creator II
Creator II
Author

Sorry,

I ll try and come back to you

upaliwije
Creator II
Creator II
Author

Hi Solanki

Thanks for your advice. It is working for the sample I sent you. But when I applied it to my whole data one reord does not give the answer. I attched my excel sheet with new record. Kindly see to it and advise me pls.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

It does work.

Have a look at the attached application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
upaliwije
Creator II
Creator II
Author

Yes Solanki It is working. But I add some more script some fields are blank. Eg NUMDA, AGE

Kinldy have a look at the attachment and correct me.

upaliwije
Creator II
Creator II
Author

Sorry I made a mistake. Your earlier reply is perfect