Forum Discussion
Need help with conditional data aggregation
- 7 years ago
Hi,
This is the result i got.
- 7 years ago
Hi,
This is the result i get. I do not quite agree with yoru results in Feb 2019. I think for Feb 2019, discharged should be 0 and dropped should be 1. I have shown patient ID's there to prove my point. Are you OK with this result?
- msingh20197 years agoHelper II
Hi Ashish_Mathur,
I agree with your result till Jan-2019 (there were some mistakes in my previous Desired Output table). So, for Jan-2019 - Active = 0, Discharged = 2 (p234 & p235), Dropped = 1 (p236) and this is correct. But in Feb-2019, p234 gets dropped so will get added to Dropped count for Feb-2019. And therefore for Feb-2019 - Active = 0, Discharged = 1 (p235 is carried forward from Jan-2019) and Dropped = 2 (p236 & p234). I hope this makes sense.
I have corrected the PBIX file, link is here.
Thanks
- Ashish_Mathur7 years agoSuper User
Hi,
This is the result i got.
- msingh20197 years agoHelper II
Thanks Ashish_Mathur! This is the correct result. Please do share the PBIX file.