Forum Discussion
Group By Column Type
- 3 years ago
Something like this?
Number of users = COUNT(SampleData[User]) - Anonymous3 years ago
Hi PowerBrowse ,
I think you can try ALLEXCEPT() function to create a measure or a calculated column.
Total Group by Lic Type = CALCULATE ( DISTINCTCOUNT ( 'Table'[User] ), ALLEXCEPT ( 'Table', 'Table'[Lic Type] ) )Result is as below.
OR
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| Lic Type | User |
| Admin | Denise |
| Read | Simon |
| Write | Carl |
| Read | Julia |
| Read | Laura |
| Admin | Peter |
| Read | Bob |
I want to Group each Admin, Read, and write group. After each group I want to print the number of each Lic type i.e after Admin I want to print "Total = 2" because there are 2 Admin users. After Read group I want to print "Total = 4" because there are 4 Read Lic Types.
Hi PowerBrowse ,
I think you can try ALLEXCEPT() function to create a measure or a calculated column.
Total Group by Lic Type =
CALCULATE (
DISTINCTCOUNT ( 'Table'[User] ),
ALLEXCEPT ( 'Table', 'Table'[Lic Type] )
)
Result is as below.
OR
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.