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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
bumin
Partner - Creator II
Partner - Creator II

Percentag calculation based on a line

I have to create a table with a percentage column

the percentage in every line is calculated based on the line "revenue total" : current line / revenues total

can anyone give me a hint how to do it?

accountvaluepercentage
revenues dom.10043,48%
revenues EU8034,78%
revenues other5021,74%
revenues total230100,00%
HR cost6026,09%
material cost4017,39%
cost total10043,48%
gross margin130

56,52%

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello,

If the "account" displayed above is a dimension, you might try something like the following

Sum(value) / Sum({1< account = {'revenues total'} >} TOTAL value)


Hope that helps.

EDIT: Checked syntax

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello,

If the "account" displayed above is a dimension, you might try something like the following

Sum(value) / Sum({1< account = {'revenues total'} >} TOTAL value)


Hope that helps.

EDIT: Checked syntax

bumin
Partner - Creator II
Partner - Creator II
Author

Thanks Miguel,

works perfectly

kind regards

Bumin