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

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.

Reply
Enilv
Regular Visitor

Number of patient each date with start and end date

Hi , 

 

I want to have the number of patient every day on my organization. More precisly i want a graph with each day on absciss and the number of patient for this date. Moreover i want for example filter this graph by service name 

My data is organized like that in one table : 

powerBIpatient.PNG

 

I want something like that where filter could be apply

 

 

graph.PNG

 

Thank you 

 

3 REPLIES 3
Greg_Deckler
Super User
Super User

So, I am assuming that the problem that you are running into is that you need to display patient counts when they are greater than or equal to the start date and less than or equal to the end date. I did this for a call center once. I'll have to dig up the solution but essentially it involved create a measure that did a count with the filters above as described and then putting it into a column chart with a date table's date as the axis, something along those lines. I'll have to dig it up and take a look.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

This is the pbix file file.zip

Patient = 
CALCULATE (
DISTINCTCOUNT ( Feuil1[numero] );
FILTER (
Feuil1;
Feuil1[date1]
<= CALCULATE ( MAX ( Feuil2[date] ) )
);
FILTER (
Feuil1;
Feuil1[date2]
>= CALCULATE ( MIN ( Feuil2[date] ) )
)
)

 

I already realize something like that but filter doesn't work on my graph because there aren't linked as well 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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