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

Qlikview 10 and qlikview 7.5

Hi everyone:

The following code for Expression under Opening Balance for Qlikview 10 works just fine but when I transfer the code to Qlikview 7.5 the figures for Opening balance does not seem to appear.

=sum({<invtype ={20}>} goodqty) - sum({<invtype ={34}>} goodqty)

+

sum({<invtype ={40}>} goodqty) - sum({<invtype ={42}>} goodqty)

Could anyone share some light to this?

Thanks alot 

1 Solution

Accepted Solutions
Not applicable
Author

Hi Jai and Rob:

I manage to use the following 'If' statment and it works....

sum (if (invtype='20',goodqty)) - sum (if (invtype='34',goodqty))

+

sum (if (invtype='40',goodqty)) - sum (if (invtype='42',goodqty))

Guys thank you so much for your kind help...

View solution in original post

5 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Your expressions use Set Analysis syntax -- which was not available until QV 8.5.

-Rob

http://robwunderlich.com

Not applicable
Author

Hi Rob:

Thanks for the information. Now I know why I can’t get the Expression in Qlikview 7 because of the SetAnalysis syntax problem.

Is there another way of getting over this SetAnalysis syntax in Qlikview 7?

Thanks a lot

Not applicable
Author

Hi,

   Try with "If" statement instead of Set Analysis.As told earlier QV 7 wont support Set Analysis.

-Jai

Not applicable
Author

Hi Jai:

Thanks for the reply.

I am not too sure how I can use the ‘if’ statement for the below statement.

= sum({<invtype = {20}>}goodqty) -  sum({<invtype = {34}>}goodwty)

+

sum({<invtype = {40}>}goodwty) - sum({<invtype = {42}>}goodwty)

There are two fields’ invtype and goodqty:-

I need to sum the goodqty under invtype ‘20’ – sum the goodqty under ‘34’ + sum the goodqty ‘40’ – sum the goodqty under invtype ‘42’

Sorry for the trouble as I am new to script or code writing.

Thanks a lot for all your kind help.

Not applicable
Author

Hi Jai and Rob:

I manage to use the following 'If' statment and it works....

sum (if (invtype='20',goodqty)) - sum (if (invtype='34',goodqty))

+

sum (if (invtype='40',goodqty)) - sum (if (invtype='42',goodqty))

Guys thank you so much for your kind help...