Forum Discussion

PowerBrowse's avatar
PowerBrowse
Helper I
3 years ago
Solved

Group By Column Type

I have a table with multiple columns. One Column is called Lic Type and another is called User. There are six different Lic Types and multiple users can be in each Lic Type. I want to group my repo...
  • bolfri's avatar
    bolfri
    3 years ago

    Something like this?

     

    Number of users = COUNT(SampleData[User])

     

  • Anonymous's avatar
    Anonymous
    3 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 Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.