Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear @ValtteriN,
I trying to create a gantt chart calendar using vacation date ranges. However, I want to show available dates of employees and also flag and show overlapping date ranges within the gantt chart. could you kindly assisst. Kindly find the link to the report: https://drive.google.com/file/d/1hKW5_mEcXLwNuUreS7mQ3wk_qw5QnJXb/view?usp=share_link
excel sheet data: https://docs.google.com/spreadsheets/d/1u-gLLbJjAkaCDvRdEw5U8-cmmk3SJx-D/edit?usp=share_link&ouid=11...
Regards,
Bluenred22
Solved! Go to Solution.
Yea,
Here is an example of this (rows 45 to 47 of the dax):
Proud to be a Super User!
Hi,
This solution might be a bit complex and I have done it with mock data due to security limitations, but here is my approach:
In this example I am creating a SVG measure to create the Gant chart instead of using custom visual. This allows for unlimited customizations.
Mockdata calculated table:
Proud to be a Super User!
@ValtteriN many thanks for the support. There is one question in my head...is the DAX coding in this solution considered hard coding as the data is coming from sharepoint list and its changing every now and then.
Could you also send me the pbix file so I can take a deep look at your solution.
Regards,
Bluenred22
Thanks for the reply @ValtteriN so in that case you mentioned "Note that the measure's data type needs to be "image url"" so how do I convert my data into image URL? Also how do I add the data into the demo model as I am not an expert in Dax frankly 🙂
Hi,
You can convert the measures data category here:
To use the measure with your data. You can use the corresponding fields for the columns. E.g.
'gantdemo'[StartDate] -> 'YourTable'[YourStartDate] and 'Calendar'[Emonth] -> 'YourCalendar'[EndOfMonth].
[Child] column refers to the dimension column. In my example I am using [parent] and [child] column structure. In your case this column would be name.
This section is optional:
Proud to be a Super User!
It works @ValtteriN thanks for the assist.
Is it possible to give every child a different color ?
Please let me know.
Regards,
Bluenred22
Yea,
Here is an example of this (rows 45 to 47 of the dax):
Proud to be a Super User!
@ValtteriN how do I color the overlapping sections red in that case? as different color shades were not welcomed by users. Another thing is there a way to show which are the overlapping dates in a seprate table ?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
20 | |
18 | |
16 | |
13 | |
10 |