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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Picking data from non selected fields

Hi Guys,

I was wondering if it's possible to obtain "non-selected data" 'automaticly'?

Let me explain:

If this is my Source Dataset:

ReceivedArticleDocumentNumberQty ReceivedAmount Received
05/12/2008Art3200085200
20/01/2009Art3300011230
21/01/2009Art3300112120
05/12/2009Art4400060300
05/12/2009Art1400126131
05/12/2009Art1400270349
20/12/2009Art1400356271
08/01/2010Art5401153500
08/01/2010Art1600096444
15/01/2010Art132008852
15/01/2010Art1400518103
15/01/2010Art1400640176
15/01/2010Art1400728182
15/01/2010Art1500064000
21/01/2010Art3459912120
04/02/2010Art44001117500
05/02/2010Art2400420200
05/02/2010Art2459821800
02/03/2010Art580001100


And I want to select by Month & Year to get my latest stock movements (stock overview) for ALL my articles, I can't find the correct syntax herefore.

If I select 02/2010 I get:

04/02/2010Art44001117500


05/02/2010Art2459821800


This is correct because these are the latest dates with the highest documentnumbers, so in fact my latest receipts.

But I want to have a view over ALL my articles and their movements -->

selectionfeb/10
Art115/01/2010500064000
Art205/02/2010459821800
Art321/01/2010459912120
Art404/02/20104001117500
Art508/01/2010401153500


because in feb 2010 I had 2 movements for Artcs 4 & 2, but in Jan 2010 my last movements for Artcs 1,3,5 were:

Art115/01/2010500064000


Art321/01/2010459912120


Art508/01/2010401153500


Who can help me out? Is it possible in QV? Because how I understood to engine of QV it shows just all the 'related' values to your selection.

(as in feb 2010, artcs 2 and 4)

Many thanks

John

2 Replies
johnw
Champion III
Champion III

I don't know if I completely understood, but here's one approach that uses an AsOfMonth and QlikView's normal associative logic. By selecting an AsOfMonth instead of ReceivedMonth, you include in the data set all receipts up to that date. Then you "just" need to exclude everything but the most recent receipt on or before that date. It seems to work. It at least produces the chart you requested.

Not applicable
Author

Hi John,

thanks for your suggestion. It looks like it works as you described.

I couldn't find it on my own, but again something new learned! Many Thanks!!

Can I ask you a second question about this datamodel? How can I now connect my (2nd table) overview of stock? Which key to use? How to link with these results?

I have a second table, showing by month/year by Article the qty in Stock.

I tries with the key

MONTH

(

(Month) & ' ' & Year AS AsOfMonth,

but this doesn't show the correct results.

PS: How can I send you/publish my .QVW and .XLSX?

By tab Options, I can only post 1 attach??

In the excel, you'll find a 1*tab for Receivings, a 2*tab for Stock overview and a 3*tab for the wanted results..

Table receivings:

ReceivedDateArticleDocumentNumberQtyReceivedAmountReceived
05/12/2008Article3200085200
20/01/2009Article3300011230
21/01/2009Article3300112120
05/12/2009Article4400060300
05/12/2009Article1400126131
05/12/2009Article1400270349
20/12/2009Article1400356271
08/01/2010Article5401153500
08/01/2010Article1600096444
15/01/2010Article132008852
15/01/2010Article1400518103
15/01/2010Article1400640176
15/01/2010Article1400728182
15/01/2010Article1500064000
21/01/2010Article3459912120
04/02/2010Article44001117500
05/02/2010Article2400420200
05/02/2010Article2459821800
02/03/2010Article580001100


Table Stock Overview:

ArticleMonthYearStockPrice
Article1122008010
Article112009010
Article122009010
Article132009010
Article142009010
Article152009010
Article162009010
Article172009010
Article182009010
Article192009010
Article1102009010
Article1112009010
Article112200915210
Article11201042810
Article12201042810
Article13201042810
Article21220080100
Article2120090100
Article2220090100
Article2320090100
Article2420090100
Article2520090100
Article2620090100
Article2720090100
Article2820090100
Article2920090100
Article21020090100
Article21120090100
Article21220090100
Article2120100100
Article22201022100
Article23201022100
Article312200885
Article312009315
Article322009315
Article332009315
Article342009315
Article352009315
Article362009315
Article372009315
Article382009315
Article392009315
Article3102009315
Article3112009315
Article3122009315
Article312010435
Article322010435
Article332010435
Article4122008040
Article412009040
Article422009040
Article432009040
Article442009040
Article452009040
Article462009040
Article472009040
Article482009040
Article492009040
Article4102009040
Article4112009040
Article41220096040
Article4120106040
Article4220107140
Article4320107140
Article5122008070
Article512009070
Article522009070
Article532009070
Article542009070
Article552009070
Article562009070
Article572009070
Article582009070
Article592009070
Article5102009070
Article5112009070
Article5122009070
Article512010570
Article522010570
Article532010670


Wanted Result:

RECEIVINGSSTOCK OVERVIEW
ArticleReceivedDateDocumentNumberQtyReceivedAmountReceivedYearMonthArticleStockPrice
-->dec/09Article120/12/2009400356271200912Article115210
Article2xxxx200912Article20100
Article321/01/2009300112120200912Article3315
Article405/12/2009400060300200912Article46040
Article5xxxx200912Article5070
-->jan/10Article115/01/201050006400020101Article142810
Article2xxxx20101Article20100
Article321/01/201045991212020101Article3435
Article405/12/200940006030020101Article46040
Article508/01/201040115350020101Article5570
-->feb/10Article115/01/201050006400020102Article142810
Article205/02/201045982180020102Article222100
Article321/01/201045991212020102Article3435
Article404/02/2010400111750020102Article47140
Article508/01/201040115350020102Article5570
-->mrt/10Article115/01/201050006400020103Article142810
Article205/02/201045982180020103Article222100
Article321/01/201045991212020103Article3435
Article404/02/2010400111750020103Article47140
Article502/03/20108000110020103Article5670




(