SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Excel Gantt Chart help with DAX


Excel Gantt Chart help with DAX

Author
Message
JesseBizInt
JesseBizInt
Old Hand
Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)Old Hand (334 reputation)

Group: General Forum Members
Points: 334 Visits: 31
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search