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

Sript error

Dear all,

I have attached my sample data.

In my data base I have some products with same product code which have different selling prices and different commission patterns in the range of "Personal Product".

What i did in my commission calculation,

I introduced extended product codes to my commission rate(COMRATES.XLS) file and to the product mater file (BS-MF.xls). And also renamed the product codes in the data base through the script.

But the calculation dose not give the expected answer. As per my observation renaming in the script dose not works.

Can anyone help me to change the script to have proper result.

Regards,

Priyantha

2 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Can you explain with some sample example and your expected output?

Regards,

Jagan.

Not applicable
Author

BCOD ORC_CODE CLA_CODE PRD_CODE REF_NO GL_CODE PREMUMBRO_ORCAGE_ORCGRO_ORCDIRECT_MEORC_COMEXCESS
WW0054042PPSEWW0014D0004846707401201000108130-22
WW0014D0004847707401201000108130-22
WW0014D0004858707401201000108130-22
WW0014D0004859707401201000108130-22
54945PPSEWW0014D0004831707401201000108130-22
WW0014D0004832707401201000108130-22
WW0014D0004834707401201000108130-22
WW0014D0004850707401201000108130-22
WW0014D000486570740557000503020
54997PPSEWW0014D00048357074055700050500
WW0014D00048527074055700050500
WW0014D0004866707401201000108120-12
WW0014D000486770740858000773047

Dear Jagan,

In the above table there are three "PREMIUMS" available with same "CLA_CODE"and "PRD_CODE" with different commission structures. The calculation should be done in "DIRECT_ME" colomn. Expexted results should be like below.

PREMIUM     DIRECT_ME

   557                50

   858                90

  1201           130

If you see my script i have renamed the 'PRD_CODE' and introduced the same to the product master file and the commission rate master file.

Please help,

Regards,

Priyantha