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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I have a matrix table but the subtotals for each row is wrong.
The current table that i have right now is this:
This is my desired outcome:
To get the values, I've created a measure and this is my calculation:
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
Test =
VAR ThisDate =
SELECTEDVALUE ( 'Date'[Date] )
VAR Hours =
SUMX (
DISTINCT ( 'Date'[Date] ),
CALCULATE (
( 100 - SUM ( 'Hours'[Loading] ) ) * 0.08,
FILTER (
'Hours',
'Hours'[Job Start Date] <= ThisDate
&& 'Staff Booking'[End date] >= ThisDate
)
)
)
RETURN
Hours
Hi I think you are close to the solution. However right now, i realised that the total sum of rows are "8 * number of date"
Hi @Anonymous ,
Has your problem been solved? If not solved, can you share with me some screenshots of your data after hiding sensitive information?
Best regards,
Yadong Fang
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |