Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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