Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Gantt chart by MAQ - fix the date range

I have variouse sets of data that I am displaying using the Gantt Chart by MAQ. each set has variouse max end dates and therefore the date ranges change for the bar chart. I would like to show the same date range for all charts regardless of the max date in the data being displayed. Is this possible at all?

5 REPLIES 5
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is this problem sloved?
 
If it is sloved, could you kindly accept it as a solution to close this case?  
 
If not, please let me know.  
 
Best Regards
Icey
Anonymous
Not applicable

Hi Icey,

 

thanks for the reply. I think i have misled you in the wording of my problem. I have one data set. I need to display the Gantt chart on different pages (one for each department). Where the max or min dates for each department vary, the date range shown on the chart varies. I want to make them all the same. hope that is clearer!

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

If so, you can try the method @Anonymous  provides.

 

Best Regards,

Icey

 

Icey
Community Support
Community Support

Hi @Anonymous ,

Maybe you can try these measures:

MaxEndDate =
MAX (
    CALCULATE ( MAX ( 'Table 1'[EndDate] ) ),
    CALCULATE ( MAX ( 'Table 2'[EndDate] ) )
)
MinStartDate =
MIN (
    CALCULATE ( MIN ( 'Table 1'[StartDate] ) ),
    CALCULATE ( MIN ( 'Table 2'[StartDate] ) )
)

Best Regards,

Icey

 

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

Anonymous
Not applicable

Hi @Anonymous 

Try creating a date table and then link it to your data tables in the model.

use the dates from the date table in the visuals

Cheers!
A

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.