Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
thanhphongle
Creator II
Creator II

how to pile bars in a barchart?

Hello Community,

I wanna pile the new purchase price on the old purchase price and the new leaserate on the old leaserate in a barchart.

I have 5 variables:

VariablesValue
Purchase Price old100000 €
Purchase Price new300000 €
Leaserate old3500 €
Leaserate new12000 €
Expected Useful Life in months24

I chosed an independent Dimension (Category) which has no relation to the purchase price or leaserates

I created 4 different expressions in one chart

Expected Useful Life = 24 months

Purchase Price oldPurchase Price newLeaserate oldLeaserate new
100000 €300000 €3500*24 = 8400012000*24 = 288000

Purchase Price TOTAL: -> [Purchase Price old]+[Purchase Price new] -> 100000+300000 = 400000

Lease TOTAL: -> [Leaserate old]*[Expected Useful Life]+[Leaserate new]*[Expected Useful Life] -> 3500*24+12000*24 = 372000

This is how it should look like

Bild1.png

I hope anyone can help me out here

4 Replies
sasikanth
Master
Master

Hi,

Why dont you split in to two different chars ? any issue

Chart 1:

Dim Catgeory,

Exp1: OldPurchase

Exp2: New Purhcase

Chart2:

DIm:Category

Exp1:Old less rate

Exp2: New Less rate

Make the bar chart style Mode as Stacked.

thanhphongle
Creator II
Creator II
Author

I need it in one chart , to compare that leasing is cheaper than purchase

Anonymous
Not applicable

Hi,

Is this helping you?

Dim Catgeory,

Exp1: sum(OldPurchase)

Exp2: sum(New Purhcase) (and at BAR Offset sum(OldPurchase))

Exp3:sum(Old less rate)

Exp4: sum(New Less rate) (and at BAR Offset sum(New Less rate))

You can find bar offset on the plus, when expending the expression option.

Best regards,

Cosmina

thanhphongle
Creator II
Creator II
Author

Hi Popescu,

unfortunetely is is not workin properly. The bar below disappears and it doesnt show the total sum of both values.