Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I have a table like below:
| Date | name | Hours spent |
| 1/1/2010 | a | 8:00 |
| 2/3/2010 | a | 1:00 |
| 3/8/2010 | b | 10:00 |
| 4/10/2010 | c | 19:00 |
| 1/1/2010 | a | 1:00 |
| 6/15/2010 | d | 20:00 |
When I load and use a table with name and hours spent I get the below with a having cumulative value of 10:00
| name | Hours spent |
| a | 10:00 |
| b | 10:00 |
| c | 19:00 |
| d | 20:00 |
When I use matrix the sum is wrong. I am using a measure= sum(hours spent) in the matrix.
| name | Date | Hours spent |
| a | 8:00 | |
| a | 1/1/2010 | 8:00 |
| a | 2/3/2010 | 1:00 |
| a | 1/1/2010 | 1:00 |
the grand total is just the first row value. Can someone help me understand this?
Solved! Go to Solution.
Hi @vgangabharani ,
To create a measure as below.
hour = SUMX('Table',HOUR('Table'[Hours spent]))
Pbix as attached.
Thanks for this. I aggregated time like this:
Hi @vgangabharani ,
To create a measure as below.
hour = SUMX('Table',HOUR('Table'[Hours spent]))
Pbix as attached.
Thanks for this. I aggregated time like this:
I cannot recreate this. See Page 7, Table10 of attached.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.