# QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
See why Qlik was recognized for the seventh year in a row – and discover how we can help you tackle your data integration challenges. Get the report
cancel
Showing results for
Did you mean:
Contributor II

## Wrong Percentage Total in a straight table

Hello!!

I need your help, i make a straight table with a one dimension's limit..at this table i have added 2 expression: the first have a simple SUM(Amount) the second is a percentage of the total: SUM(Amount)/SUM(Total(Amount)).

But this second expression is wrong! I see that the "SUM(Total(Amount))" gives me a wrong result.

I attached the table.

Thanks,

Giancarlo

Messaggio modificato da Giancarlo Saturno Hi, i have change the file (not it is more simple)

1 Solution

Accepted Solutions
MVP

Here you go... this doesn't have Other Banks, but can be included with some more effort

6 Replies

Sum(TOTAL Amount) gives constant value for all possible values

Sales

10

20

30

Sum(TOTAL Sales) returns 60.

So, In straight table, Sum(Sales)/Sum(TOTAL Sales) //It will work as below

10/60

20/60

30/60

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
MVP

I think dimension limits will cause problem here... you will have to use Rank() function to restrict to the top 17. Would you be able to point out which expressions are we looking at? There seems to be few of them in your chart... not sure which one are you working with....

Contributor II
Author

Hi Sunny,

Thanks for your replay, i have attached a new file..the expression is the secon '% on total'...i try qith an if with Rank() function but it dosen't work

MVP

This would require some doing.... You have a very complicated dimension.... I can look at this once I am home if somebody have not already responded and resolved your issue

MVP

Here you go... this doesn't have Other Banks, but can be included with some more effort

Contributor II
Author

It works! Thank you very much!!