Forum Discussion

KatchB's avatar
KatchB
Regular Visitor
2 years ago
Solved

Distinct Count based on Multiple Conditions

  Hello I am trying to achieve a distinct count of Document # based on the column "Location Code". In this example the count should equal to 8. I am doing a distinct ct by the invoice number a...
  • v-yanjiang-msft's avatar
    2 years ago

    Hi KatchB ,

    According to your description, you want to get the distinct count of location code, you can directly create a measure:

    Measure = DISTINCTCOUNT([Location Code])

    If you have more than one value in the Document No column, and you want to get the distinct count of Location Code by each Document No. Directly put Document No and Location Code in a visual and select "Count(Distinct)" of the Location Code column.

     

    Best Regards,
    Community Support Team _ kalyj

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