Data that has been sliced (filtered) based on one field is returned correctly in the slice but the view based on this slice is empty. Anyone have any ideas what the issue could be?
The field being used to slice the data is a VC lookup to another table.
Two tables, Circuits & Circuit_Notes. The VC looks up the related rows in the Circuit_Notes table, select the row with the most recent date (MAXROW) and returns the value of field IsActive. If there are no related rows in the Circuit_Notes table, the expression returns TRUE.
Also, that expression of yours is hugely expensive!
For each row of CIRCUITS: 1) look at every row of CIRCUIT_NOTES; 2) for each row of CIRCUIT_NOTES, look again at each row of CIRCUIT_NOTES; 3) if the circuit occurs in CIRCUIT_NOTES, repeat (1) and (2).
If N is the number of rows in CIRCUITS, M is the number of rows in CIRCUIT_NOTES, and every circuit is represented in CIRCUIT_NOTES, you’re doing 2M(N^2) row inspections!
Eek!
I suggest creating a virtual column (e.g., LATEST_NOTE) to compute MAXROW(...):
Thank you for pointing out how expensive my expression was and rewriting it for me. Unfortunately, the results are the same: Expected data is returned in the slice but not in the view based on the slice.
I built a test app if you’re interested and available to take a look?
As for the expression, I was curious as to how the expression was being written in regards to the segmentation rather than the color formatting. Where each part of the expression is broken into individual segments.
As for the expression, I was curious as to how the expression was being written in regards to the segmentation rather than the color formatting.
I’m guessing mean the blocks enclosing the code fragments? Precede and follow the snippet with a line consisting of three consecutive backticks (```).
I’m guessing mean the blocks enclosing the code fragments? Precede and follow the snippet with a line consisting of three consecutive backticks (```).