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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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