Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Covert IF Condition into set analysis

Hi Folks,

I have a problem converting if condition into set analysis

i have variable expression, I need to simplify in set analysis. Can anyone help this .

If(IF(Payment = 'NET' AND Payment_Discount<>0 ,1,0)=1,

-(TCNET * NumberOFTrans ) + (Annual_Trans * (PaymentDiscount_PerDays+AvgNET) /365) * FundRating

+ Annual_Trans * Payment_Discount )

Kindly help to convert the above expression in set analysis.

I tried but still there is expression error.

Thanks in advance

Vignesh kumar

3 Replies
Gysbert_Wassenaar

Try this:

sum({<{Payment={'NET'},Payment_Discount={'<>0'}>} -(TCNET * NumberOFTrans ) + (Annual_Trans * (PaymentDiscount_PerDays+AvgNET) /365) * FundRating + Annual_Trans * Payment_Discount))


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert, Thanks for your help, but still am getting expression error. And too i have to check where the set analysis is equal to 1.

Kindly help me with this issue... Not only in set analysis if there is any other way apart from if condition. That would be gretful.

Regards,

Vignesh kumar

Gysbert_Wassenaar

Please post a small qlikview document that explains what you want.


talk is cheap, supply exceeds demand