Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I Have patients visits schedule that have the details of the visits and the procedure done in each visits, I neet to diffrentiate visits that have same day visit the data look something like this
Visit Number | Patient Name | Patient Number | Visit Date | Procedures Doen | Visit Type |
1001 | Joseph | MR200 | 10 Januray 2019 | A | OP |
1001 | Joseph | MR200 | 10 Januray 2019 | B | OP |
1001 | Joseph | MR200 | 10 Januray 2019 | C | OP |
1012 | Joseph | MR200 | 10 Januray 2019 | X | IP |
1012 | Joseph | MR200 | 10 Januray 2019 | Y | IP |
1012 | Joseph | MR200 | 10 Januray 2019 | Z | IP |
I want to add a coulmn to specify wethed patient have a visit in the same day or not
Regards,
Solved! Go to Solution.
Hi @Mamoun_issa ,
Please try this:
Same Day =
CALCULATE (
DISTINCTCOUNT ( myTable[Visit Number] ),
ALLEXCEPT ( myTable, myTable[Patient Number], myTable[Visit Date] )
)
Proud to be a Super User!
Hi @Mamoun_issa ,
Please try this:
Same Day =
CALCULATE (
DISTINCTCOUNT ( myTable[Visit Number] ),
ALLEXCEPT ( myTable, myTable[Patient Number], myTable[Visit Date] )
)
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |