Forum Discussion

houssamedd's avatar
houssamedd
New Member
7 years ago
Solved

DISTINCT COUNT AND GROUP BY

Good morning Power BI community! I have been running through some problems creating the correct measure, and I'm wondering if you guys can help.   I have a table that goes like this: I crea...
  • v-jiascu-msft's avatar
    7 years ago

    Hi houssamedd,

     

    Try this formula, please. BTW, the first need doesn't need a measure. Try the built-in calculation.

    Measure =
    CALCULATE (
        DISTINCTCOUNT ( Table1[Book] ),
        ALLEXCEPT ( Table1, Table1[publishing house] )
    )
    

    DISTINCT-COUNT-AND-GROUP-BY

    Best Regards,
    Dale