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

Where not exists problem

Hi!

I need to do the following - please, help.

Screenshot_1.jpg

FirstOrderTable:

Load

OrderN as OrderNx,

First_Purchase

Resident FlagTableTmp

Where First_Purchase=1

;

Drop Table FlagTableTmp;

Concatenate (FirstOrderTable)

Load Distinct

OrderN as OrderNx,

'0' as First_Purchase

Resident Main_table

Where not Exists(OrderNx,OrderN)

;

Rename Field OrderNx to OrderN;

The script error says: The name 'OrderN' already exists


Thank you!

1 Solution

Accepted Solutions
andrey_krylov
Specialist
Specialist

Hi, Глеб)  this is because the Main_table has not been droped and field OrderN exists in the app. QV doesn't support renaming fields in the only table.

View solution in original post

4 Replies
andrey_krylov
Specialist
Specialist

Hi, Глеб)  this is because the Main_table has not been droped and field OrderN exists in the app. QV doesn't support renaming fields in the only table.

ziabobaz
Creator III
Creator III
Author

Andrey, meaning, the Rename works with entire app, rather than particular table? Okay, I can handle it.

How about the rest of the script? Something is wrong:

Screenshot_2.jpg

andrey_krylov
Specialist
Specialist

Can you share a sample app? I can't fully understand the issue.

ziabobaz
Creator III
Creator III
Author

OMG, I just noticed my Flag was selected in a front end.

Sorry, the scipt works fine.