Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatg6759
Creator III
Creator III

Need help with straight table

Hello ,

I have a table like this

NO    Name             Field        bad    

11      tradelink         dollar        10%

12      capital             security     20%

11        tradelink     dollar        20%

If i am doing the sum of rows i am getting

                                              30%

11      tradelink         dollar        10%

11      tradelink     dollar            20%

How can i aggregate and show them only one time like this

11    tradelink           dollar           30%  

Please help me how to aggregate or any other methods.

Thanks,

4 Replies
DavidFoster1
Specialist
Specialist

Hi Venkata

In your example, the second table is not consistent with the first one. Also can you confirm the expression you are using for 'bad'?

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

NO    Name            Field        bad  

11      tradelink        dollar        10%

12      capital            security    20%

131        tradelink    dollar        20%

First row is NO field value is different. How come it have to merge in to single row?

venkatg6759
Creator III
Creator III
Author

sorry both the nos are same .I misstyped it . tradelink has only one no.

venkatg6759
Creator III
Creator III
Author

Hi David,

this is how we are doing %bad = sum{<field=>}bad/(sum({<field=>}bad+sum{<field=>good

We are having weights as well by which we calculate in this way

sum{<field=>}bad/(sum({<field=>}bad+sum{<field=>good * Weights