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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I write below sql statement in qlikview edit script and in set analysis

  How can I write this sql statement in qlikview edit script and in set analysis.

if (MISC_FEE_RECURR_FLG='Y' ,

if ACTACC_RECURR_FLG ='Y',

then [Miscellenious Fee]+ [ActualAccount])) AS Reccuring

Thanks in advance.

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III


In your load script this would be

If(MISC_FEE_RECURR_FLG='Y' and ACTACC_RECURR_FLG='Y', [Miscellenious Fee] + [ActualAccount], Null()) as Reccuring

In set Analysis:

Sum({$<MISC_FEE_RECURR_FLG={'Y'},ACTACC_RECURR_FLG={'Y'}>}  [Miscellenious Fee] + [ActualAccount])

View solution in original post

5 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III


In your load script this would be

If(MISC_FEE_RECURR_FLG='Y' and ACTACC_RECURR_FLG='Y', [Miscellenious Fee] + [ActualAccount], Null()) as Reccuring

In set Analysis:

Sum({$<MISC_FEE_RECURR_FLG={'Y'},ACTACC_RECURR_FLG={'Y'}>}  [Miscellenious Fee] + [ActualAccount])

Not applicable
Author

Hey Aptha,

Please check out the attached file. Hope it helps you.

Thanks

AJ

Anonymous
Not applicable
Author

Small note - set analysis is for the front end expressions.  Don't attempt it in script.

Not applicable
Author


Thank you all.

Not applicable
Author

Hi Aptha, we can't use the SET analysis type syntax in the Qlikview script.

Please use IF function to achieve the this type of requirements.