Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Aggregate function

sum(ValueINR) is not working correctly in pivot table

sum(valueINR is 1000000

but it show 40000 its column wise

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Add straight table with dimension as region, and expression as Sum((Value INR) / sum( total (Value INR)

     Have a look at the attched file.

     

Regards,

Kaushik Solanki    

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

View solution in original post

10 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Please explain in detail with what you are doing. If possible also attach the sample example (QVW file)

Regards,

Kaushik Solanki

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

ValueINR  Region

500          south

1000        north

500           east

1500         south

200           north

700           east

700           west

this is Table Value

in pivot Table

Region

east        1200

west        700

north       1200

south      20000

but i want total value is 5100

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     So only thing is you need total in pivot table...?

     If yes then go to properties -> Presentations -> Dimensions & expressions -> select region and then check show partial sum -> click apply and ok

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

So you want to display for every region the total value for all regions?

Anonymous
Not applicable
Author

yes Przemek you are right

Not applicable
Author

You can use sum(total ValueINR)

Anonymous
Not applicable
Author

hi Kaushik Solanki i want to calculate the percent of north region so i  put formula in expression

sum(Value INR)/ sum(Value INR)/100 (ie for east region 1200/(5100/100))

Region    Value INR  percent

east        1200          23%

west        700            13%

north       1200           23 %

south      2000           39 %

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can try with this expression,

          (sum(ValueINR) * 100)/ sum(Total <Region> ValueINR)

Celambarasan

Not applicable
Author

You can use

sum(ValueINR) / sum(Total ValueINR)  as expression and than in the Presentation tab choose Show in percent (also choosing number or fixed to).