0

Using NL(Link) sequence seems to be important, but why?

Hi,

First of all, what I am using here works like a charm, but I need your opinion about the why.

The question asked is about counting contacts that meet a set of criteria from different tables, all related to each other back and forth.
In human language:
I want to count the contacts that live in a certain city, that follow classes of a certain price and type in the given period.
And I want them listed by city and then by price.

In Excel it comes down to this.

B4 holds the Price code filter value.
B5 holds the period of reporting.
B6 holds the City filter value.
All available prices are generated by a NL(Rows) in D8: =NL("Rows";"Price";"Code";"Code";$B$4)Starting with the Contact table I first filter on City in E8: =NL("CountUnique";"Contact";"No.";"City";$B$6;"Link=";$F8)F8 holds a NL(Link) function that links back to the contact table and filters on the given price: =NL("Link";"Seminar Line";;"Participant";"=No.";"Price";$D8;"Link=";$H8;"Link=";$G8)H8 and G8 are holding additional NL(Link) functions, both linked back to Seminar Line.
G8: =NL("Link";"Seminar";;"No.";"=DocumentNo.";"Class Type";"Period")H8: =NL("Link";"Classes";;"DocumentNo.";"=DocumentNo.";"LineNo.";"=LineNo.";"Date";$B$5)
It was quite a puzzle but the results are as expected.

What I don't understand is that I can't switch the double link= parameters in F8 ("Link=";$H8;"Link=";$G8).
When I first link to G8 and then to H8, JetReports tells me (only when I run the report) that it encounters and unknown field 'DocumentNo.'

Although the results are looking good, I still am not sure if I did it correct, because of the error.

I can't find any documentation on the double link parameter I use in F8.
Also I am not sure of the double field link I use in H8 ("DocumentNo.";"=DocumentNo.";"LineNo.";"=LineNo.").
This is because the tables Seminar Line and Classes are related not just on one field but on two.

Looking forward to your opinion about this and hoping that there is some documentation on the NL(Link) that you can share.

rmw

2 comments

Please sign in to leave a comment.