Forum Discussion
GilbertGotfried
4 months agoFrequent Visitor
Calculating a total in one step with assessing multiple rows at the same time
I have data that looks like this. Customers can get multiple ratings. If at least one of those ratings fulfills the logic, that customer is counted once as being positively rated. I'm not counting ...
- 4 months ago
Please try the measure below:
Customers with Positive Rating = CALCULATE ( DISTINCTCOUNT ( Table1[Customer ID] ), Table1[Rating] = "Good", Table1[Risk] IN { "Moderate Risk", "High Risk" } )
mickey64
Super User
4 months agoFor your reference.
Step 0: I use these data below.
Step 1: I make a measure and a matrix below.
Count = CALCULATE(DISTINCTCOUNT('DATA'[Customer ID]),FILTER('DATA',([Rating]="Good"&&[Risk]="Moderate Risk")||([Rating]="Good" && [Risk]= "High Risk")))