Forum Discussion

jwin2424's avatar
jwin2424
Resolver I
4 years ago
Solved

Distinct Count if ALL rows have the exact same value

Hello.    I am trying to determine how many distict orders have ONLY the data type "potential."   Here is the output count I am needing:   Distinct Count with at least one actual Discint Co...
  • TheoC's avatar
    4 years ago

    Hi jwin2424 

     

    You can use the following two measures:

     

    DCount Actual = 

    VAR _1 = COUNTROWS ( FILTER ( DISTINCT ( Table[Order ID] ) , [Actual] > 0 ) )

    RETURN

    _1

     

    DCount No Actual = 

    VAR _1 = COUNTROWS ( FILTER ( DISTINCT ( Table[Order ID] ) , [Actual] = 0 ) )

    RETURN

    _1

    Output will be as per below:

     

    Hope this helps!

    Theo 🙂