Forum Discussion

Achartuni's avatar
Achartuni
Icon for Helper I rankHelper I
6 years ago
Solved

Remove duplicates in a DirectQuery and leave the entries with certain value in a column

Hello Power Bi community, I am running into the following problem and I'd like some help to solve this issue. We're working with DirectQueries and we'd like to remove the duplicated values and leave...
  • v-chuncz-msft's avatar
    v-chuncz-msft
    6 years ago

    Achartuni 

     

    Drag measure below to Visual level filters and set Show items when the value is 1.

    Measure =
    IF (
        CALCULATE ( DISTINCTCOUNT ( Table1[Status] ), ALLSELECTED ( Table1[Status] ) ) = 1
            || MAX ( Table1[Status] ) = "accepted",
        1
    )