cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Resolver II

## Calculated Columns totaling in Matrix

Hey All – I need help creating a measure that will give me the right totals

I have a table that has Projects and then Project roles underneath

It has the total Working days in the contract (Max of ContractDays)

Each role has a rate

The Max of ContractRoleHours are the total hours in the contract

The Max of HrsPerDay  is Max of ContractRoleHours / Max of ContractDays

The TotHoursPerDay is Max of HrsPerDay  * Max of ContractDays

The TotDailyValue is Max of HrsPerDay  * Rate

TotHrsPerDay Should = Max of ContractRoleHours. It does for some but not all. I know there are some filter and sum special logic needed in calculating some totals in matrix sometimes, but this is fairly straight forward and I used calculated columns for these values, so I thought it would work. I’m stuck on why it works for some and not all, (And also need to make it work 😊

1 ACCEPTED SOLUTION
Resolver II

I was able to solve my issue -thank you all.

3 REPLIES 3
Resolver II

I was able to solve my issue -thank you all.

Community Support

Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.

Best regards,

Super User

I couldn't see where it works. However, in general you can do

SUMX (

SUMMARIZE ( 'Table', [Column1], [Column2] ),

CALCULATE ( the max aggregation )

)

where Column1 and Column2 are the columns placed in the rows of the matrix

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors