Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Nested FunctionCall in Set Analysis not working

Hi, I have a column the following structure:

MasterContactIDContactIDIndexDescription
90901
90902
90903
90904Outbound
90905Outbound
90906Inbound
90907Inbound
90911
90912Inbound
90913Outbound
90914Outbound
90915Outbound


What I am trying to get is:

"The 1st non-empty Description, for the smallest ContactID of the current MasterContactID"

So this record would be :

90904Outbound


I am trying to get this done with this Set analysis:

FirstSortedValue( {$<
ContactID = {"=Min(ContactID )"},
Description-={""}
>} distinct Description, ContactID )

But is not working, it is not filtering ContactID with ContactID = {"=Min(ContactID )"}.

Any Suggestions?

Thanks in advance four your time.

-Ed

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

A few minor changes seem to fix it if I've understood the question:

firstsortedvalue({<ContactID={'$(=min(ContactID))'},Description-={''}>} Description, Index)

Edit: Following up for the same reason as Michael, I've assumed you are selecting or otherwise in the context of a specific MasterContactID. That's why there's no inclusion of it above. I don't know if this is the case.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Ed, try
ContactID ={"$(=Min(ContactID))"}

Edit:
Nope, I'm wrong, you have to get min within master contact id, which is probably closer to this:
min(total<MasterContactID> ContactID)

johnw
Champion III
Champion III

A few minor changes seem to fix it if I've understood the question:

firstsortedvalue({<ContactID={'$(=min(ContactID))'},Description-={''}>} Description, Index)

Edit: Following up for the same reason as Michael, I've assumed you are selecting or otherwise in the context of a specific MasterContactID. That's why there's no inclusion of it above. I don't know if this is the case.

Not applicable
Author

Thank you very much, the function did work, it seems i was calling the inner Min() wrongly.

Regards

EDIT: By the way, you assumption was correct I was selecting a MasterContactID. 🙂