Forum Discussion

AI14's avatar
AI14
Icon for Helper III rankHelper III
3 years ago
Solved

measure to count dulicates

Hi   i want to count the total finished however there areID's that are duplicate. how do i count filter and only dount unique values of another?   i have a measure with the following formula: = ...
  • tamerj1's avatar
    3 years ago

    Hi AI14 

    please try

    =
    CALCULATE ( DISTINCTCOUNT ( Table[ID] ), Table[Status] = "Finished" )

  • AI14's avatar
    AI14
    3 years ago

    Thanks, worked.

     

    what if i wanted to add 2 filters

     

    i tried the below but didnt count, just showed blank

     

    CALCULATE ( DISTINCTCOUNT ( Table[ID] ), Table[Status] = "Finished"  && Table[Status] = "Started" )

  • FreemanZ's avatar
    FreemanZ
    3 years ago

    try replacing && with ||