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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Teddibeer
Helper I
Helper I

Project time planner with resource

Dear all,

 

i am trying to create a table to view the total hours per person spend in specific weeks.

I have the project name, person, begin date, end date and time spend each day but I cant figure out how to get this in a matrix table.

Can someone assist me with it?

2 REPLIES 2
Anonymous
Not applicable

Hi  @Teddibeer ,

I created some data:

vyangliumsft_0-1690785281149.png

Here are the steps you can follow:

1. In power query – Select [begin date] and [end date] – Unpivot Column.

vyangliumsft_2-1690785300382.png

Result:

vyangliumsft_3-1690785311971.png

2. Create calculated table.

Table 2 =
CALENDAR(
    DATE(2023,6,1),
    DATE(2023,12,31))

vyangliumsft_4-1690785337991.png

3. Create measure.

Measure =
var _select=SELECTEDVALUE('Table 2'[Week])
return
COUNTX(
    FILTER(ALL('Table 2'),
    'Table 2'[Date]>=
MINX(
    FILTER(ALL('Table'),
    'Table'[project name]=MAX('Table'[project name])&&'Table'[person]=MAX('Table'[person])),'Table'[Value])
&&
MAXX(
    FILTER(ALL('Table'),
    'Table'[project name]=MAX('Table'[project name])&&'Table'[person]=MAX('Table'[person])),'Table'[Value])
&&
'Table 2'[Week]  = _select),[Date])
*
MAX('Table'[time spend each day])
Measure2 =
var _table1=
SUMMARIZE(
    'Table','Table'[project name],'Table'[person],"Value",[Measure])
var _table2=
SUMMARIZE(
    _table1,[project name],[Value])
return
IF(
    ISINSCOPE('Table'[person]),[Measure],
    IF(
        ISINSCOPE('Table'[project name]),
    SUMX(_table1,[Value]),
    SUMX(_table2,[Value])
))

4. Result:

 

vyangliumsft_5-1690785337994.png

 

Best Regards,

Liu Yang

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

the unpivotting of the data is causing errors all over the report

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.