Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Display occurrences within a date range and number of occurrence slicer

Hi

I have this scenario, a table for Emergency Presentations looking like the sample below. I need to have a date range slicer and number presentations slicer. If my date rnage is between 1/8/2020 and 30/9/2020 and the presentation slicer is set to 2, I should only see patient B and C. IF the slicer for presentation set to 3, I should see patient A only. Thanks in advance, if anyone can help me build measures and/or relations for that .

ilky_0-1601624244263.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Use this measure with PatientID and selectedvalue(Value[value]) is value 1,2,3 which are selecting. Whatif or from independent table

 

countx(filter(summarize(Table,Table[PatientID], "_1", count(Table[Arrival Date])),[_1] >=selectedvalue(Value[value])),[PatientID])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

If not, please kindly elaborate more.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@Anonymous ,

Use this measure with PatientID and selectedvalue(Value[value]) is value 1,2,3 which are selecting. Whatif or from independent table

 

countx(filter(summarize(Table,Table[PatientID], "_1", count(Table[Arrival Date])),[_1] >=selectedvalue(Value[value])),[PatientID])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (8,148)