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.
Hi ,
I am replicating gannt chart for Project tracking from excel to Power BI, I am facing difficulty in showing timeline of Gannt Chart in Three ways like : Daily, weekly and monthly as the option we have in Excel.
For Gannt Chart in Power BI, I am using Custom Visual by Microsoft.
Here is the example in power bi currently
Example in Excel :
Based on the selection in slicer I want to change the timeline in Gannt Chart.
Looking for solution, Thanks in advance!
To create a Gantt chart with the ability to switch between daily, weekly, and monthly views in Power BI, you'll need to utilize slicers and measures to dynamically adjust the date granularity. Here's how you can achieve this:
Set Up Your Data:
Create a Date Table:
Create Slicers:
Create Measures:
Gantt Start Date =
IF (
SELECTEDVALUE ( 'Slicer View' ) = "Daily",
MIN ( 'Date Table'[Date] ),
IF (
SELECTEDVALUE ( 'Slicer View' ) = "Weekly",
MIN ( 'Date Table'[Date] ),
IF (
SELECTEDVALUE ( 'Slicer View' ) = "Monthly",
MIN ( 'Date Table'[Date] ),
BLANK ()
)
)
)
If you find this insightful, please provide a Kudo and accept this as a solution.
Hi Devesh,
Appreciate your help, but the above dax is creating a measure which is not usable either in slicer or Gannt Chart.
Can you refer any video related to the solution?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
95 | |
80 | |
77 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |