Forum Discussion

ScottA1423's avatar
ScottA1423
New Member
8 years ago
Solved

Suppressing data

I am building a dashboard that needs to suppress information when it may violate patient confidentiality. The dashboard includes the city of patients who present to the emergency department for accid...
  • v-juanli-msft's avatar
    v-juanli-msft
    8 years ago

    Hi ScottA1423

    As i use your example, i replace "fewer than 10 " to "1", however it doesn't affect the result you want

    Try this measure 

    Measure =
    IF (
        CALCULATE (
            SUM ( Table1[Drug Overdoses] ),
            FILTER (
                ALLEXCEPT ( Table1, Table1[City] ),
                Table1[Date] <= MAX ( 'Table'[Date] )
                    && Table1[Date] >= MIN ( 'Table'[Date] )
            )
        )
            <= 1,
        "S",
        CALCULATE (
            SUM ( Table1[Drug Overdoses] ),
            FILTER (
                ALLEXCEPT ( Table1, Table1[City] ),
                Table1[Date] <= MAX ( 'Table'[Date] )
                    && Table1[Date] >= MIN ( 'Table'[Date] )
            )
        )
    )

    Best Regards

    Maggie