Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, hope you can help me with this one.
I am trying to build a measure to show when the same Patient ID has been scheduled for 2+ appointments on the same day. I want to be able to use this measure to show how often this occurs per day/month year etc.
I've looked everywhere and tried many approaches but can't figure it out 😞
I have these 3 columns:
Appt Date/Time
Patient ID
Patient Name
Thank you in advance.
Solved! Go to Solution.
@adricrist87 , Create a date if you have datetime as a new column
date = datevalues([Appt Date/Time] )
Countx(filter(summarize(Table, Table[Date], Table[Patient ID], "_1", countrows(Table) ) , [_1] >1), [Patient ID])
or
measure =
var _tab =
filter(summarize(Table, Table[Date], Table[Patient ID], "_1", countrows(Table) ) , [_1] >1)
return
countx(summarize(_tab, [Patient ID]), [Patient ID])
@adricrist87 , Create a date if you have datetime as a new column
date = datevalues([Appt Date/Time] )
Countx(filter(summarize(Table, Table[Date], Table[Patient ID], "_1", countrows(Table) ) , [_1] >1), [Patient ID])
or
measure =
var _tab =
filter(summarize(Table, Table[Date], Table[Patient ID], "_1", countrows(Table) ) , [_1] >1)
return
countx(summarize(_tab, [Patient ID]), [Patient ID])
Thank you so much for your prompt response. I followed the first option with measure:
Countx(filter(summarize(Table, Table[Date], Table[Patient ID], "_1", countrows(Table) ) , [_1] >1), [Patient ID])
Based on the results in the table below 135 Patient IDs had 2 or more appointments scheduled for 01/03/2022, 153 for 01/04/2022, and so on?
Thank you.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |