Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
PowerPaul
Helper I
Helper I

Help w SumX using calculated column (multiplication)

Hi all I have a data model which Im using to calculate costs in an excel data model.

Each employee is assigned a % they are on a scrum team. I have the daily rate for each employee and multiply that by % to get the adjusted daily rate. When I sum this column implicitly or explicitly with a measure I am getting the incorrect total for each scrum team. I am assuming I need to use SumX to get the correct total per scrum team however I cannot get it to work. 

PowerPaul_0-1664554415979.png

The adjusted daily rate column multiplies % by daily rate. 

I need to sum this column to show all the scrum team rates by team and employee. 

The subtotal rows for each scrum team are not displaying correctly but the employee rows are correct.

 

AdjDailyRate:=SUMX(Scrum__W_Rates,SUM(Scrum__Rates[Adjusted Daily Rate]))

Example: the highlighted cell should equal 14,996.25. 

PowerPaul_1-1664554840520.png

 

Thank you

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @PowerPaul 

please try

AdjDailyRate:=SUMX(Scrum__W_Rates,Scrum__Rates[Adjusted Daily Rate])

however, the normal sum should also work. What do you have on the rows of the pivot table?

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @PowerPaul 

please try

AdjDailyRate:=SUMX(Scrum__W_Rates,Scrum__Rates[Adjusted Daily Rate])

however, the normal sum should also work. What do you have on the rows of the pivot table?

Hi tamerj1, the regular sum has worked. I am not sure why it didnt work the last time maybe because I used calculate(sum but with no filters it should have been the same. 

I find Excel to be very buggy and always has issues so maybe there is something wrong w my version of excel. 

My pivot table rows consist of scrum team name followed by employee name. 

This gives me the view of each scrum team members, the % and cost per team. 

I appreciate the help. 

Thanks

@PowerPaul 
I don't work so often with Power Pivot but it does behave differently compared to Power Bi that is true.

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors