Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Countif combination in Power BI

Hi,   I have a table that look likes this: A B C D E Customer_ID (text) ComputerName (text) Productname Number of cores (whole number) Number of services (whole num...
  • v-diye-msft's avatar
    6 years ago

    Hi Anonymous 

     

    I would like to add a column, which in Excel would look like: countif($A$2:$A2,$A2). This will count the number of unique customer_id's from 1 to x.

    Kindly let me know if you'd like to get the below results: If not please kindly disclose the expected results.

    Measure = DISTINCTCOUNT('Table'[Customer_ID])

     

    I would also like to add a column that count both the customer_id and the computername, in Excel this would be countifs(customer_id:customer_id,computername:computername).

    Not quite understand this requirement, please kindly elaborate and disclose the expected results.