Forum Discussion

aoifoc's avatar
aoifoc
Frequent Visitor
9 years ago
Solved

Group data rows by 'count distinct' value

Hi,   I have dataset which includes multiple rows of activity data for individuals, this is a small example:   Name         Type Mark            Gym Mark            Outdoor Mark            Fit...
  • Phil_Seamark's avatar
    Phil_Seamark
    9 years ago

    In DAX you could create the following Table

     

    New Table = SUMMARIZECOLUMNS('Table1'[Name],"Types",DISTINCTCOUNT('Table1'[Type]))

    Then create a measure on that new table 

     

    Measure = COUNTROWS('New Table')

    Then if you add the items to a grid you can display your end result