Forum Discussion

Aukje's avatar
Aukje
Helper I
6 years ago
Solved

Table with distinct count as row

Hi,   Question: How can I achieve a table with distinct count (0-15) as rows, with a count of occurrance (individual IDs with a distinct count value based on another column) as column value?   Eg...
  • Wesleyvanv's avatar
    Wesleyvanv
    6 years ago

    Hi Aukje,

     

    You should create a new Table in DAX:

    New Table = SUMMARIZECOLUMNS('Table'[ID],"Groups",DISTINCTCOUNT('Table'[GROUP]))

     

    And then the following measure:

    Count = COUNTROWS('New Table')