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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
LB187
Contributor
Contributor

Load Script If Functions

Hi i am looking for the correct function to create a new field within a table that will "rank" each client dependent on certain conditions....for example in excel this would look something like....

IF(B2<>B1,1,
IF(AND(B2=B1,O2=O1),1,
IF(AND(B2=B1,O2<>O1),L1+1)))

In Qlik I am unsure how to translate this so it ranks my data?

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this:

If(MyFieldB = above(MyFieldB) and MyFieldO <> above(MyFieldO),  above(MyFieldL) + 1 , 1)


talk is cheap, supply exceeds demand
LB187
Contributor
Contributor
Author

Thanks for this I think it works but the only issue is that in the example above (MyFieldL) is simply a "1" in Excel and ads another 1 becoming 2 if the other aspects of the formula are met thus resulting in a 2 and a 3 and so on?