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: 
MeeraAgrawal
Creator
Creator

set analysis

Hi Guys 

I am new in Qlik sense I have created a measure for calculating Revenue  like below expression 

vRevenue=sum(1[Unit Sold])*sum([Price per unit])

but its showing same value for all of the product. I have attached screenshot for your reference please let me know what are the issue?

4 Replies
Durgadevikumar
Partner - Contributor III
Partner - Contributor III

Hi meera,

if you put 1 as s set identifier then it takes the complete data set. And it is exclude the current selection.

so use $ instead of 1,

vRevenue=sum({$}[Unit Sold])*sum({$}[Price per unit])

regards,

Durga

agigliotti
Partner - Champion
Partner - Champion

i'm not so sure but you can try this:

vRevenue = sum( [Unit Sold] * [Price per unit] )

I hope it can helps.

MeeraAgrawal
Creator
Creator
Author

It's not working showing same value for all products. please find attached screenshots.

Durgadevikumar
Partner - Contributor III
Partner - Contributor III

use 

vrevenue=sum({$}[Unit Sold]*[Price per unit])  in variable overview

and call by,

=$(Vrevenue) in your chart

Regards,

Durga