Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have built a statement to count the distinct number of Patients seen in a day.
PatientDistinctByDate =
var tmptable =
SUMMARIZE('Dates','Dates'[Date], "DistinctCount",DISTINCTCOUNT('All Data'[PAT_ID]))
RETURN SUMX(FILTER(tmptable,[Date]<= MAX('Dates'[Date])),[DISTINCTCOUNT])
I am having difficulty adding to this statement so that if they saw a different Provider(s) in the same day it will count that patient again.
Example...
IF John Smith saw Dr. Acula twice on 4/5/23 = 1 count
IF John Smith saw Dr. Acula twice & Dr. Zebra on 4/6/23 = 2 count
IF John Smith saw Dr. Acula, Dr. Zebra, & Dr. House twice on 4/7/23 = 3 count
Solved! Go to Solution.
I have someting similar in my model. I utilize the Claims table to get the [Visit Count].
Visit Count =
COUNTROWS (
SUMMARIZE (
CLAIM,
CLAIM[Subscriber_Member_ID],
CLAIM[Service_Date],
CLAIM[Provider_ID]
)
)
I have someting similar in my model. I utilize the Claims table to get the [Visit Count].
Visit Count =
COUNTROWS (
SUMMARIZE (
CLAIM,
CLAIM[Subscriber_Member_ID],
CLAIM[Service_Date],
CLAIM[Provider_ID]
)
)
Hi,
try this:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
61 |
User | Count |
---|---|
197 | |
118 | |
108 | |
78 | |
69 |