Forum Discussion
Total Count by ID and Another Column
- 6 years ago
Make sure you are using do not summarize on Id column when you put to the table
Measure = CALCULATE(COUNTROWS(FILTER(Sheet1,Sheet1[Status]="Eligible")),ALLEXCEPT(Sheet1,Sheet1[ID]))Pbix is attached after signature.
if you need more help make me @
Appreciate your Kudos.
Try like
Total Eligibilities = CALCULATE(DISTINCTCOUNT('Patient Conditions'[Diagnosis]),ALLEXCEPT('Patient Conditions','Patient Conditions'[Status]),'Patient Conditions'[Status]= "Eligible")
Also, this gives a good example to deal with subtotal :https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
Thanks, for the response amitchandak. That gets me closer, but it is now only giving me the distinct number of diagnosis with a status of "Eligible" for the entire dataset, not by ID. I tried added another ALLEXCEPT function including the ID, but that didn't change anything.
Thanks for the link, I'll look at that now as well.
Appreciate the help!
-Taylor
- amitchandak6 years agoSuper User
Make sure you are using do not summarize on Id column when you put to the table
Measure = CALCULATE(COUNTROWS(FILTER(Sheet1,Sheet1[Status]="Eligible")),ALLEXCEPT(Sheet1,Sheet1[ID]))Pbix is attached after signature.
if you need more help make me @
Appreciate your Kudos.