Forum Discussion

bbwong's avatar
bbwong
Icon for Helper I rankHelper I
5 years ago
Solved

Unique Combinations

Trying to find best way to identify combinations and to count distinct IDs. For example:   Would like output as this: With thanks, BB
  • selimovd's avatar
    selimovd
    5 years ago

    Hey bbwong ,

     

    you're absolutely right.

    In this case change the COUNTROWS to a DISTINCTCOUNT of the ID:

    Red & Blue = 
    CALCULATE(
        DISTINCTCOUNT( myTable[ID] ),
        myTable[Category] = "RED" || myTable[Category] = "BLUE"
    )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis