Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
I have a conditional measure that is showing the wrong subtotals and totals in a matrix visualization.
The measure works like this:
If a worker is a contractor then I have to add all the hours they logged in Schedule. If the worker is not a contractor then I have to take the Defined Month Hours from the Calendar table. See example formula below:
Month Hours =IF(MAX(WorkerData[Type])="Non Contractor", SUM('Calendar'[Defined Month Hours]),CALCULATE(SUM(Schedule[HOURS]))
If I check each worker everything works correctly, but when checking the totals or subtotals, only Non Contractors are being added.
See example:
| Boss | Worker | Month Hours |
| Boss Subtotal | 100 | |
| Worker 1 (Non contractor) | 50 | |
| Worker 2 (Non contractor) | 50 | |
| Worker 3 (Contractor) | 5 | |
| Total | 100 |
I would appreciate any help with the issue was I have been finding solutions but not for this specific type of scenario.
Thanks.
Solved! Go to Solution.
Please see this video for how to solve this. You likely need to use something like this (replacing T1 with your actual table name.
NewMeasure = SUMX(Summarize(T1, T1[Boss], T1[Worker]), [YourMeasure])
(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube
Pat
Hi,
Does this measure work?
Measure = SUMX(VALUES(WorkerData[Type]),[Month hours])
Please see this video for how to solve this. You likely need to use something like this (replacing T1 with your actual table name.
NewMeasure = SUMX(Summarize(T1, T1[Boss], T1[Worker]), [YourMeasure])
(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube
Pat
I am afraid that the boss and the worker are at different tables.
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 |
|---|---|
| 65 | |
| 64 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 119 | |
| 117 | |
| 38 | |
| 36 | |
| 29 |