Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

looking for proper calculation

Good day, I have the following question. If the LEVEL is not the same, but the PARTNUMBER_SUP and the LMUT_DAT is the same, then I want a calculation (measure?)  which gives me the outcome "yes". ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

    You can create a measure as below, please find the details in the attachment.

    Measure =
    VAR _ps =
        SELECTEDVALUE ( 'Table'[partnumber_sup] )
    VAR _idate =
        SELECTEDVALUE ( 'Table'[lmut_dat] )
    VAR _count =
        COUNTROWS (
            FILTER (
                ALLSELECTED ( 'Table' ),
                'Table'[partnumber_sup] = _ps
                    && 'Table'[lmut_dat] = _idate
            )
        )
    RETURN
        IF ( _count = 1, "oke", "double mutation" )

    Best Regards