Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

COUNTIF in DAX - DATA TABLE

Hi all, I would like to know how to do a COUNTIF on DAX, something like the example below: =COUNTIF(A:A,A2) I reached my results via MEASURE but I wanted to make it as a actual COLUMN ...
  • Jihwan_Kim's avatar
    4 years ago

    Hi,

    I am not sure how your data model looks like, but please check the below picture and the attached pbix file.

    It is for creating a new column.

     

     

    Desired outcome CC = 
    COUNTROWS( FILTER( Data, Data[UnicNumber] = EARLIER(Data[UnicNumber]) ) )