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

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.

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

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

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