Home

Sum a value within a subset of DistinctCount

Highlighted
Anne_LaMar
New Contributor

In a Pivot Table is there a way to Sum a value within a Distinct Count?

 

I am trying to find out the total number of days for patients who have been hospitalized for at least 1 day. I filtered by Days > 0 and did a DistinctCount on the Patient ID (because there are multiple records for the same patient) but the Sum of Days is for everyone, not just the Distinct Count.

 

Thank you for your assistance.

2 Replies

@Anne_LaMar , I didn't catch what do you mean under the sum for distinct count. You may apply Distinct count to patients and receive how many unique patients do you have. If you sum days, it'll be summed for every patient. Perhaps you may attach small sample to illustrate what you'd like to calculate.

@Sergei Baklan 

 

I think I figured out another way to determine total Days. Thank you.

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies