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: 
Not applicable

formula problem in graph

hi

i have a pie chart that is splitted up in ariclegroups and shows the income. the formula is sum(income).

I want that the pie chart shows the percantage of sales per articlegroup. basically i have to get a formula that divides the partial income per articlegroup by the total income, right? but i can't figure out the correct formula for that. please help me.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=sum(income)/Sum( Total income)

And  in the number tab check 'Show in Percent (%)'

View solution in original post

4 Replies
tresesco
MVP
MVP

Try like:

=sum(income)/Sum( Total income)

And  in the number tab check 'Show in Percent (%)'

sudeepkm
Specialist III
Specialist III

can you please post your sample qvw?

have you tried using Relative option in the chart expression tab?

Not applicable
Author

Try tresesco's formular and put the articlegroup as dimension. Don't forget to check the relative-box in your pie-chart.

That should do the trick....

Not applicable
Author

thanks for your help. i didn't know the 'total' command. this was very easy