I have these filters: DiseasesCategory1, Result1, TestID1,ExaminationDate,DiseasesCategory2, Result2, TestID2
Each person can or may be tested for one of the diseases in category 1 or/and for diseases in category2, either the same date or not, and the tests can be multiple for either disease.
I want to make a KPI to count how many people have at least one positive result to each one of the diseases in each category.
but it gives me a very large number... The "problem" i fail to solve is that for each of the persons the dates can vary.
I want to count for each distinct person, for the last examination date for each disease the positive tests. I dont know what to do with the dates, because they can be the same day or completely other days.