Forum Discussion

sajtx725's avatar
sajtx725
Regular Visitor
1 year ago
Solved

Count Distinct Across Multiple Columns in PowerBI

Hi,   I'm trying to do a distinct count across multiple rows in Power Bi.  But I noticed that the DISTINCTCOUNT() function in power bi only takes one column.    For example, let's say I have mult...
  • v-pnaroju-msft's avatar
    1 year ago

    Thank you, Ritaf1983 , lmolus , and lbendlin , for your responses.


    Hi sajtx725,

    We sincerely appreciate your inquiry through the Microsoft Fabric Community Forum.

    In addition to the responses provided by Ritaf1983 , lbendlin , and lmolus , kindly find attached a sample PBIX file and a screenshot for your reference. To obtain the distinct count of combinations across multiple columns such as Product, Category, and Subcategory, we have created a calculated column by concatenating these fields using the "&" operator, and then applied a DISTINCTCOUNT measure on that column.

    We hope that the information provided will assist in resolving your issue. Should you have any further questions or require additional assistance, please feel free to reach out to the Microsoft Fabric Community.

    Thank you.