cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cbutler
Helper III
Helper III

Number of employees sick ON A DAY - over time - start and end date - currently sick

Hi all, 

Not sure where I am going wrong here, I think this should be a simple calc but I cant seem to get my head around it.....
I’m trying to sum the total number of staff currently absent - and to look at this over time. 

This one I am using a date table, however the calc is pulling up the totals the same over many months inc future months....

Capture.PNG

 

 

This one is using the start date, but is just counting the number of new absences that started on that date, not the total of all people absent on that date

Capture 2.PNG

 

 

What I want to see on the bar chart is the number of employees off sick over time and have this as low as on one day. Any ideas...? 




1 ACCEPTED SOLUTION
Greg_Deckler
Super User IV
Super User IV

See if this helps, it was designed to handle date intervals:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364

 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
amitchandak
Super User IV
Super User IV

@Cbutler 

This a file on almost similar data, solved using date calendar

https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Greg_Deckler
Super User IV
Super User IV

See if this helps, it was designed to handle date intervals:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364

 


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

@Greg_Deckler Would  it be possible to download that PBIX file? 

Yes you can, on that page scroll down and you should be able to click the download link (highlighted below):

 

image.png


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Ha what a donut! thanks @Greg_Deckler 😁

No problem! Hope it helped!

---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors