Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

% from total

I have a table, and what i want is on each row a % from the total value of the comun. At debtor 0003 i wanna see 50%. Because i have an amount  of 3000 from total 6000. I attached an example.

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

For this example, checking the "Relative" box in the expression tab will give you the percentage instead of your calculating it, as seen from the attached file.

View solution in original post

3 Replies
erichshiino
Partner - Master
Partner - Master

Hi,
Add this expression:

sum(Orderamount)/

sum(total Orderamount)

'Total' means that the sum will ignore the dimension to give you the sum of all Orderamount.

This will then give you the % of total

Hope it helps,

Erich

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi, Francis,

and you can enter one or more dimensions to define, which Total or Subtotal will be taken:

sum(Orderamount)/

sum(total <Dim1,Dim2,...> Orderamount)

Best greetings from Munich

nagaiank
Specialist III
Specialist III

For this example, checking the "Relative" box in the expression tab will give you the percentage instead of your calculating it, as seen from the attached file.