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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
HeidiTr
Frequent Visitor

Count how many patients visit x number of times

I have a list of hospital visits for 2020 and have been asked to visualize how many patients have had 1, 2, 3, etc. visits in each department. I'm getting myself rather counfused while WFH, but I think I need to count a count - right? Can someone help me formulate this? 

 

I have [Visit ID], [Patient SSN] and [Department]. I want the overall results, and then I'll just filter on each Department later on. I am expecting to get something like this:

13.340 patients had 1 hospital visit

15.993 patients had 2 hospital visits

7.902 patients had 3 hospital visits

...etc.

 

Thanks in advance,

Heidi

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HeidiTr , I think you need bucketing on a visit measure using independent table, Post that you will be able to create %.

 

Check if my video can help : https://youtu.be/CuczXPj0N-k

 

or

https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

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

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @HeidiTr 

 

Can you share some fake sample data and your desired result ? And What visuals you want to use to display the result? So we can help you soon.

 

Best Regards

Janey Guo

Dear Janey, thank you. I figured it out myself, with inspiration from amitchandak's answer. I've accepted his answer as the "solution" now.  

 

Best, Heidi 

Hi @HeidiTr ,That's OK, I am glad you can solve it by yourself.

 

Best Regards

Janey Guo

amitchandak
Super User
Super User

@HeidiTr , I think you need bucketing on a visit measure using independent table, Post that you will be able to create %.

 

Check if my video can help : https://youtu.be/CuczXPj0N-k

 

or

https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.