Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Comparing data of current week and last week while calculating sell-through

Hi all! I am calculating the sell through rate of a product.

Right now, I have weekly sales and inventory data.

The formula of the rate is the sales quantity divided by the inventory of the last week.

However, I don't know how to write the expression of the measures.

I have tried the following but it won't work:

SUM(Sales)/SUM({<[Date]={[Date]}-7>}Inventory)

Please help solve! Thanks in advance!!

p.s. This is the expected answer:    

DateSalesInventorySell Thru
7/1/2017654
7/8/20171212%
7/15/201735314%
7/22/201762111%
7/29/201746619%
8/5/201775311%
0 Replies