Excel Gantt Chart help with DAX

  • Hello everyone!

    I had built a Gantt chart using PowerPivot and conditional formatting and displayed via PivotTable. The column headers are days of the week, and my boss wants me to convert the chart to have month name as the column header. The desired outcome is to have the whole month filled in with a value if the project touches any date within the month, even if it the just the first date of the month.

    My measure for controlling the values in the gantt chart is:

    Gantt:=IF (

    COUNTROWS(VALUES(Projects[Project Name]))=1,

    IF (

    LASTDATE(VALUES(BasicCalendarUS[DateKey])) >= LASTDATE(VALUES(Projects[Start Date]))

    && LASTDATE(VALUES(BasicCalendarUS[DateKey])) <= LASTDATE(VALUES(Projects[Due Date]))

    &&MAX(BasicCalendarUS[Include])=1,

    1

    ), 0

    ) * MAX(Projects[Multiplier])

    I had followed a tutorial on the web somewhere to create this chart, and my DAX knowledge is sketchy at best. The Projects[Multiplier] field modifies the Gantt value based on status so that is a project is past due it gets a red bar and if the project is on time it gets a green bar. I tried Googling around but couldn't find any tutorials using this approach at the monthly level.

    I also tried switching the column headers from Week Ending and Day of Week to just Month Name, but then no rows are displayed. The row headers are Project Name, Start Date, Due Date, and Project Lead (this last one is probably not relevant to the question).

    Can anyone help me with converting this from day based chart to a month based chart? The data source is a SharePoint list so if Excel and PowerPivot could be used that would be great, but if I have to add the data to the data warehouse and manipulate in T-SQL I am not opposed to doing that either.

    Thanks in advance!

    -- Jesse

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply