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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
nchamilton162
Frequent Visitor

Power BI Matrix

Good afternoon,

I'm attempting to create a Matrix with my project, projectphase and then a span of dates across the top as my column/s that represent the first of each workweek spanned between my start and end date of each phase of my projects. I would like to place a value or 1 in the column for the start of each week that falls between my start and end dates. See screenshots below. It's sort of working, except my start of my week is off by one week in the future. For example. If you look at the "ProjectPhaseSort Name of "100 Planning", I would expect to see 3/18, 3/25, 4/1 (see table below to verify the dates "Date" and "WorkWeekStart") across the columns, each with a 1 in the column.  Any idea why my Work Week Start is in the future? and why is it cutting off my 4/1 workweekstart date for Planning for example. 

nchamilton162_2-1730835996054.png

 

Here is my workweekstart formula. 

nchamilton162_1-1730835912922.png

 

Here is my "CF  Gannt" measure dax formula.

CF Gantt =
VAR StartDate =
    CALCULATE(MIN(TM_ProjectPhases[EstStartDate]),
    REMOVEFILTERS('Calendar')
    )
   
VAR EndDate =
    CALCULATE(MIN(TM_ProjectPhases[EstEndDate]),
    REMOVEFILTERS('Calendar')
    )
VAR Period =
    MIN('Calendar'[Date])>=StartDate && MAX('Calendar'[Date])<=EndDate

VAR Result =
    If(Period,1)
   
RETURN
Result

 

Here is my model

nchamilton162_3-1730836046834.png

 

Thanks



1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors