Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Help with load script

Hi,

In my load script i need to load a field in as a different name but only if another field ='yes'. Below is an example of my fields..

EntryMethod,
SaleDescription,
DiscountGroup,
DiscountAmount,
DiscountApplied,
DiscountLine,
PriceOverride,
AuthorityId,
PromotionType,
MinimumAge,

What i want to do is to load DiscountGroup AS [Stock Movement Reason Code] but only where PriceOverride = 'yes'

This should only give me PriceOverride DiscountGroups.

Can someone tell me how to do this please?

Thanks

Labels (1)
1 Solution

Accepted Solutions
Not applicable

Use this

[PriceOverrideDiscountGroups]:

Load

xx,

xxx,

if([PriceOverride]='yes',[DiscountGroup],'') as [Stock Movement Reason Codes],

etc...

View solution in original post

1 Reply
Not applicable

Use this

[PriceOverrideDiscountGroups]:

Load

xx,

xxx,

if([PriceOverride]='yes',[DiscountGroup],'') as [Stock Movement Reason Codes],

etc...