Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Invalid expression by using Sum(A*B)

Hi All

I have a table structure like as below:

ColumnA    ColumnB   ColumnC    

AAA           10             2

BBB            20            3

CC              0              4

How does i can acheive the following result:

ColumnA    ColumnB   ColumnC     ColumnD

AAA           10             2                20

BBB            20            3                60

CC              0              4                0

i try the scripts Sum(ColumnB* ColumnC) as ColumnD, however, it return invalid expression after reload.

Would you please kindly advise?

MC

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Load

        ColumnB * ColumnC as ColumnD

remove the sum() part

View solution in original post

11 Replies
tresesco
MVP
MVP

Load

        ColumnB * ColumnC as ColumnD

remove the sum() part

Sokkorn
Master
Master

Hi MC,

Sum() should be use with Group By.

In your case, we don't need to use Sum() function. You can make it simple by

:

LOAD

     ColumnA,

     ColumnB,

     ColumnC,

     ColumnB*ColumnC     As ColumnD

From ...

Regards,

Sokkorn

Not applicable
Author

Hi,

could you please help as I am not able to post new messages in qlikcommunity as it  is showing you need moderator permission to post

Not applicable
Author

In your 3rd expression pls try below..

Column(1) * Column(2)  as columnD

techvarun
Specialist II
Specialist II

ColumnB* ColumnC is enough. No need to put the condition Sum

Regards

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     If the column2 and column3 are the expression then try this.

     Column2*Column3

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

thanks.

i save the file at QVD format and able to retrieve the saved fields at othere QVW.

For the same behaviour, i apply it at other document.  however, i can  get three fields only.

i delete the QVD manually and generate it again. Howerver, it cannot show the alias fields. Have anyone experinece the same stituation?

Thanks

Not applicable
Author

how can i help you??

Not applicable
Author

I am not bale to post the messages in qlikcommunity that's my problem please help as it is getting like below

Start New Discussion

Please note, your discussion will need to be approved by a moderator before it will be viewable by others.