Property Calculator – How to get the difference between two Multi-Select Lookup lists

Hello,

I would like to know if it is possible with Property Calculator to create a property C containing the difference between two multi-select lookup properties:

  • A = first list
  • B = second list
  • C = values present in A but not in B

So basically:

C = A - B



Here "Liste A - B" should contain bb bbb.

I tried using different modes such as:

  • Filter Lookup Values
  • Advanced Conditions
  • Comparing to Main Object

but without success so far.

Is there a supported way to achieve this with Property Calculator, or another recommended approach?

Thank you very much in advance for any advice or suggestions.

Parents
  • In section 10.2.3 of the Property Calculator guide there's an example of combining values from two lookup properties with a simple plus notation (property1 + property2). You could try the same with a minus notation.

  • Thanks, I tested the minus notation as suggested.

    It seems that the plus notation works for combining lookup/MSLU values, but I could not get the minus notation to remove values.

    Example:

    Class = Report
    Allowed Classes = Review; Internal Review

    First calculation:

    TempAllowedClasses = {Class}+{Allowed Classes}

    Result:

    Report; Review; Internal Review

    Then I tried:

    TempAllowedClasses-{Allowed Classes}

    Expected result:

    Report

    Actual result:

    Report; Review; Internal Review

    I also checked the counts, and both results contain 3 values.

    So unless I missed something in the syntax, it looks like the minus notation may not support lookup/MSLU subtraction. Does that match your understanding?

Reply
  • Thanks, I tested the minus notation as suggested.

    It seems that the plus notation works for combining lookup/MSLU values, but I could not get the minus notation to remove values.

    Example:

    Class = Report
    Allowed Classes = Review; Internal Review

    First calculation:

    TempAllowedClasses = {Class}+{Allowed Classes}

    Result:

    Report; Review; Internal Review

    Then I tried:

    TempAllowedClasses-{Allowed Classes}

    Expected result:

    Report

    Actual result:

    Report; Review; Internal Review

    I also checked the counts, and both results contain 3 values.

    So unless I missed something in the syntax, it looks like the minus notation may not support lookup/MSLU subtraction. Does that match your understanding?

Children
No Data