Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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] )
Hi @Anonymous,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
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
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?
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,
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 () )
2. The solution in a calculated table.
Table = FILTER ( CROSSJOIN ( 'Date', Query6 ), [StartDate] <= [Date] && Query6[EndDate] >= [Date] )
Best Regards,
Dale
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
59 | |
36 | |
32 |
User | Count |
---|---|
92 | |
59 | |
59 | |
49 | |
41 |