Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

set analysis in bar chart

hi,

i have a bar chart with a dimension of month_sales

i have a mesaure of purchase that conect to a dimention of month_purchase

my chart dimention is month_sales and and the expression is aum(sale_amnt)

but,

i want to add a expression of sum(purchase_amnt)

but i need that the value where the month_sales dimension =11/2015

it will show the sum(purchase_amnt) where month_purchase=11/2015

* i dont want to change my schema

somthing like-

sum({Purcahse_MONTH={(Sale_Month)}>}SO_Purchase) ??????

12 Replies
ali_hijazi
Partner - Master II
Partner - Master II

sum(if(purchase_month=sales_month,purchase_amnt))

I can walk on water when it freezes
ali_hijazi
Partner - Master II
Partner - Master II

or sum({<Purchase_Amnt={"Purchase_Month = Sales_Month"}>}Purchase_Amnt)

I can walk on water when it freezes
sunny_talwar

May be this:

Sum({<SO_Purchase = {"=Purcahse_MONTH = Sale_Month"}>}SO_Purchase)

adiarnon
Creator III
Creator III
Author

tnx,

but i tried both and its still not working

ali_hijazi
Partner - Master II
Partner - Master II

sum({<Purchase_Amnt={"=Purchase_Month = Sales_Month"}>}Purchase_Amnt)

I can walk on water when it freezes
adiarnon
Creator III
Creator III
Author

not

adiarnon
Creator III
Creator III
Author

Sum({<SO_Purchase = {"=Purcahse_MONTH = Sale_Month"}>}SO_Purchase)

what should i write SO_Purchase tha month or the amount?

sunny_talwar

What's a unique field in your data base which makes the combination of Purcahse_MONTH and Sale_Month unique?

adiarnon
Creator III
Creator III
Author

no