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
Anonymous
Not applicable

Team Leave Calendar - Annual Leave

Hi All,

 

Has anyone been able to successful create a calendar visualisation that shows a teams annual leave and the days they are on leave?

 

I have downloaded a couple of the calendar visualisation apps but unfortunately doesn't seem to 

 

Any ideas or suggestions would be great!

 

Below is the code I have pulled together the dates between a Start Date and End Data in a table as well as the employees name. 

 

Leave Expanded = SELECTCOLUMNS(
                          FILTER(
    				 CROSSJOIN(Query6,'Date') ,
	           		'Query6'[StartDate].[Date] <= 'Date'[Date]
                                &&  'Query6'[EndDate].[Date] >= 'Date'[Date]
                            ),
                            "Employee Name" , 'Query6'[EmployeeName],
                            "Is On Leave" ,'Date'[Date]
                            )
10 REPLIES 10
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

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

Hi @Anonymous

 

I am currently working on developing a visual employee calendar for leave for over 1500 employees nationally and 30+ type of leave for full time & part time staff - if this is what you are looking for, let me know and I'll provide further details of how I hacked my way through it - which I really do mean hacked 

 

Employee Calendar.png

Hi, 

 

Can you share how you created it please?

Hi,
Can you please share the query of the calendar you create. I am new to PowerBi , if you could help pls

 

Hi Robhel, 

 

I also need to work on a leave calendar. Would you please let me know how you did it? 

Hello,

Can you please share how did you implement this visual?

Anonymous
Not applicable

Hi robhel,

 

I am trying to achieve a visual which is almost exactly what you have done.  Do you mind sharing with me how you did it?

 

Thanks,

Andrew

Hi @Anonymous @intisab 

 

I used this link to create below - Link 

A =  Approved Leave

S = Submitted Leave

Names on the left on rows

Thanks Ross

AS.PNG

 

hi there @rosscortb , Can I get that template to download? Thanks

v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

What's the expected result? It seems your formula should work. Please download the demo in the attachment. 

1. The solution in a measure.

Measure =
IF (
    MIN ( 'Date'[Date] ) >= MIN ( Query6[StartDate] )
        && MIN ( 'Date'[Date] ) <= MIN ( Query6[EndDate] ),
    "On leave",
    BLANK ()
)

Team-Leave-Calendar-Annual-Leave

2. The solution in a calculated table.

 

Table =
FILTER (
    CROSSJOIN ( 'Date', Query6 ),
    [StartDate] <= [Date]
        && Query6[EndDate] >= [Date]
)

 

Best Regards,
Dale

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

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.