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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate the % in bar chart

Hi ...

for ex I have 2000 as rent cost and 200 as non-rent cost.I want to calculate the Rent cost as % of non-rent cost.

How can I put the logic here ?Thanks much.

Labels (1)
2 Replies
t_chetirbok
Creator III
Creator III

Hi!

expression: [rent cost]*100/[non-rent cost]

for your example: 2000*100/200 = 1000 %

sunny_talwar
MVP
MVP

May be add Type of cost as your second dimension and use an expression like this:

Sum(Cost)/Sum(TOTAL <Dimesion1> Cost)