Discussion Board for collaboration on QlikView Scripting.
I have a problem with two tables:
When the two tables are conected the first table lose one row, 03/01/2013, because of there is not production. The problem is that I need this row and not to lose.
In Access it is solved because it is possible to change the relation and show all data of a table (include all register of one table and only the ones in common of the other).
I need to count all rows of the first table.
Thanks in advance
If you are using the Join command in the script, try Left Join instead. It will keep everything from the first table and only Join Day from the second table that exist in the first.
Day as %Day,
1 as DayCounter, //used to count Day
From Table 1;
Left Join (Table1)
From Table 2;
As Micheal specified in the above post use Left Join so that you don't miss any rows in the first table.
Hope this helps you.
Try with mapping load to fill out null values as well.
Mapping LOAD DATE, PRODUCTION FROM TABLE ;
ApplyMap('MAP_PROD', DATE , 'ND');
So if the Production is not exist for date, ND will be inserted by ApplyMap.