Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
nburton78
Creator
Creator

pull in blanks as zeroes?

The report I'm working on right now, I am matching a part number and pick date to the inventory and inventory date to determine if inventory was on hand when the order was supposed to be picked.  The issue is the inventory report I have doesn't list the dates the inventory was at 0.  So when I try to look a the data in a table, it returns less lines.  It removes those without an inventory record match.  

I have a table that lists inventory at any given date, it looks like this:

Part numberQTY on HandDate
Z503/18/2019
Z503/19/2019
Z503/20/2019
Z504/15/2019
X504/15/2019
Y504/15/2019

 

For this specific report i'm working on, I'd like it to return 0 for any missing date.  any idea how that can be done?    

 

 

Labels (3)
1 Solution

Accepted Solutions
fkeuroglian
Partner - Master
Partner - Master

Hi

To do this, you have to "create" dates that have 0 value

One solution could be create a master calendar in a table or excel that contain all the dates, then you can do a join and create a flag after join

if(isnull(value),0,value as newfield after create the join

let me know it it is clear

Fernando

View solution in original post

2 Replies
fkeuroglian
Partner - Master
Partner - Master

Hi

To do this, you have to "create" dates that have 0 value

One solution could be create a master calendar in a table or excel that contain all the dates, then you can do a join and create a flag after join

if(isnull(value),0,value as newfield after create the join

let me know it it is clear

Fernando

nburton78
Creator
Creator
Author

thanks that works great!