Forum Discussion

tonylitvak's avatar
tonylitvak
New Member
8 years ago
Solved

Calculated Column based on filtered values of inside table

Hello everyone and thank you for your help in advance.  This is my first post in this forum!   I am trying to auto-calculate a new column called SuperCode.  For this example, i've specified wwhat t...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi tonylitvak

    Add this calculated Column

    SuperCode =
    IF (
        CALCULATE (
            COUNT ( Table1[FileName] ),
            FILTER (
                ALL ( Table1 ),
                Table1[FileName] = EARLIER ( Table1[FileName] )
                    && Table1[Status] = "Success"
            )
        )
            > 0,
        "Success",
        "Failed"
    )