Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ctedesco3307
Resolver II
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 😊

 

Thanks in advance

 

ctedesco3307_0-1663260563070.png

 

 

1 ACCEPTED SOLUTION
ctedesco3307
Resolver II
Resolver II

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

View solution in original post

3 REPLIES 3
ctedesco3307
Resolver II
Resolver II

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

v-yadongf-msft
Community Support
Community Support

Hi  @ctedesco3307 ,

 

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,

Yadong Fang

tamerj1
Super User
Super User

Hi @ctedesco3307 

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 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.