Forum Discussion
aoifoc
9 years agoFrequent Visitor
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...
- 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
Phil_Seamark
Microsoft Employee
9 years agoIn 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
aoifoc
9 years agoFrequent Visitor
Thank you for the help on this!
I ended up creating the calculated table suggested by Phil_Seamark (a solution also partially suggested by MarcelBeug) and this did the job - I have the results I need now in a matrix in my report.
Thank you all.