Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table, same value for each SKU

Hi,

This is where I started from. I have straight table that gives current inventory value for each SKU.

qv-po1.png

I need to add new date dimension that doesn't exist for inventory data. When I add it, inventory value is 0 for each date dimension rows and there is a null field that has all the inventory in it. How can I replicate the inventory value for each sku rows so it ignores the required date field?

qv-po2.png

Expression is following:

sum({< [Inventory YearWeek] = {'$(=Max({1}[Inventory YearWeek]))'}, Year=,[Required Date]=,Date=, MonthName=, Month=, Quarter=, Week= ,[Item Type]-={'Service'} >} [Inventory Qty])

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

Sum(TOTAL <SKU> {< [Inventory YearWeek] = {'$(=Max({1}[Inventory YearWeek]))'}, Year=,[Required Date]=,Date=, MonthName=, Month=, Quarter=, Week= ,[Item Type]-={'Service'} >} [Inventory Qty])

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

Try this:

Sum(TOTAL <SKU> {< [Inventory YearWeek] = {'$(=Max({1}[Inventory YearWeek]))'}, Year=,[Required Date]=,Date=, MonthName=, Month=, Quarter=, Week= ,[Item Type]-={'Service'} >} [Inventory Qty])