0

NL ROWS combined with NL COUNT

Goodday all,

This is my first post in this forum. Although i have been using Jet reports for a couple of years now I received a request for a special report, which i cannot get right. I hope someone can help me out. Because it give me a headache. ;)

I have two tables, one table contains 'Product information', like name, vendor, type and ID.(PRODUCTID)
The other table cointains records which i want to count based on the 'STATUS'. (=ACTIVE)

At this moment i have :
- NL Rows on the product table, with a filter on PROVIDERID (34). This gives me 20+ PRODUCTID's.
=NL("Rows";"Product";"PRODUCTID";"PROVIDERID";"34")

- Based on the PRODUCTID I want to count the records in the second table based on STATUS (active) and PRODUCTID.
=NL("Count";"Voucher";;"PRODUCTID";$B10;"STATUS";"Active")

All this is just basic Jet reports and not a problem.

The next level is that I only want to see the PRODUCTID's from the PRODUCT table which have less then 500 active records in VOUCHER table.
Which should give 2-5 PRODUCTID's.

I can't get it right. Could someone help me out?

2 comments

Please sign in to leave a comment.