Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatg6759
Creator III
Creator III

Problem with sum calculation in straight table

Hello All,

I have a straight table which gives weights which is a dimension and % bad which is an expression ,weighted% bad another expression.

Weight      % bad           Weighted &bad   Filed

0.5%            0.8%            10%                Australia  

Weighted %bad =%bad* weights   

I want to get the weighted%bad sum for each field .For that i should get weights sum in the dimension.Can anyone help me to fix it.

The result would probably be like this

Weight                       Sum(%bad)       Weighted%bad             Field

10% (which is total)          3.5%               35%(which is total)

5%                                                      2  %                            Austrailia

2%                                                     3%                          America

Thanks,

Venkat

4 Replies
Not applicable

Attach a qvw would help.  Thanks.

Clever_Anjos
Employee
Employee

Which expression is "%bad* weights  "?

Clever_Anjos
Employee
Employee

So we shoud rewrite your expression using a AGGR function.

Are you familiar with this function?

Clever_Anjos
Employee
Employee

Is difficult trying to help without your data.

Maybe you could use some "Scramble" (Document Properties/Scrambling) to mix-up sensitive data and post a qvw