Skip to content
Discussion options

You must be logged in to vote

I passed your request through a model I use for another project because I was interested in what I would get as a response. What do you think?

A well-known pattern in the CDISC Rules Engine, and it avoids the array problem entirely by using group on a grouping operation (min_date/max_date/min/max) instead of distinct.

Group by both USUBJID and VISITNUM, so the engine computes the value per group and then left-merges it back onto your Findings dataset row-by-row on those same key columns.

That merge is the LB.VISITNUM = SV.VISITNUM join. Each LB record already gets its own matching SV value attached.

Distinct doesn't work for this because it returns a set per group even when grouped. min_date

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JozefAerts
Comment options

Answer selected by JozefAerts
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants