Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to write expression for monthly Rate X sales by month ?

Hi All

I have a sales table below :-

month rate v1.png

Rate for 20 Jan = 20 

Rate for 20 Feb = 25

Sales for 20 Jan = 270,569

Sales for 20 Feb = 446,865

How to write expression = 20 X 270,569 + 25 X 446,865 

Paul

 

 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try something like this:

=Sum(Aggr(Only(Rate)*Sum(sales), YearMonth))

View solution in original post

2 Replies
Vegar
MVP
MVP

Try something like this:

=Sum(Aggr(Only(Rate)*Sum(sales), YearMonth))

paulyeo11
Master
Master
Author

Hi Sir

Thank you very much

Paul