Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

how to count distinct values in a column

HI I have a column with 2 different text values in, and i need to create a measure that can make a distinct count of these 2 values I have see the following https://community.powerbi.com/t5/Desktop/CA...
  • Anonymous's avatar
    Anonymous
    9 years ago

    solved with the following

     

    CountItem = CALCULATE (
        DISTINCTCOUNT (TblName[itemnumber] );TblName[Status]="Open")