Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello people,
I need help!
I have a spreadsheet in .xls with some data as below that shows allocated people in some tasks:
| Name | Start date | End date | Hours per day |
| Resource 1 | 01-01-2021 | 01-04-2021 | 2 |
| Resource 2 | 04-01-2021 | 04-03-2021 | 4 |
I need to show this data in a table like this:
| Name | Date | Hours per day |
| Resource 1 | 01-01-2021 | 2 |
| Resource 1 | 01-02-2021 | 2 |
| Resource 1 | 01-03-2021 | 2 |
| Resource 1 | 01-04-2021 | 2 |
| Resource 2 | 04-01-2021 | 4 |
| Resource 2 | 04-02-2021 | 4 |
| Resource 2 | 04-03-2021 | 4 |
I've tried some ways but I was not able to solve this problem.
Please, someone, have any idea how to solve this problem?
Thank you!
Solved! Go to Solution.
@Anonymous,
Create a disconnected date table (no relationships):
Create the measures below. The second measure is necessary to calculate totals.
Base measure:
Daily Hours Calc =
VAR vDate =
MAX ( DimDate[Date] )
VAR vResult =
IF (
vDate >= MAX ( FactTable[Start date] )
&& vDate <= MAX ( FactTable[End date] ),
MAX ( FactTable[Hours per day] )
)
RETURN
vResult
Totals measure:
Daily Hours =
VAR vTable =
ADDCOLUMNS (
CROSSJOIN ( VALUES ( FactTable[Name] ), VALUES ( DimDate[Date] ) ),
"@Hours", [Daily Hours Calc]
)
VAR vResult =
SUMX ( vTable, [@Hours] )
RETURN
vResult
Create matrix:
If you add the Name and Date fields first, you will get the error below. However, once you add the measure, the error will resolve. You can avoid this error by adding the measure first.
Proud to be a Super User!
@Anonymous,
Create a disconnected date table (no relationships):
Create the measures below. The second measure is necessary to calculate totals.
Base measure:
Daily Hours Calc =
VAR vDate =
MAX ( DimDate[Date] )
VAR vResult =
IF (
vDate >= MAX ( FactTable[Start date] )
&& vDate <= MAX ( FactTable[End date] ),
MAX ( FactTable[Hours per day] )
)
RETURN
vResult
Totals measure:
Daily Hours =
VAR vTable =
ADDCOLUMNS (
CROSSJOIN ( VALUES ( FactTable[Name] ), VALUES ( DimDate[Date] ) ),
"@Hours", [Daily Hours Calc]
)
VAR vResult =
SUMX ( vTable, [@Hours] )
RETURN
vResult
Create matrix:
If you add the Name and Date fields first, you will get the error below. However, once you add the measure, the error will resolve. You can avoid this error by adding the measure first.
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 111 | |
| 109 | |
| 40 | |
| 33 | |
| 26 |