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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
aykim101
Microsoft Employee
Microsoft Employee

Sum Total Row based on Weighted Average values above it

Trying to sum the values of a weighted average column using the records above the "Total" row

I can only get the Total Row to use the same weighted average calculations as the rows above it

 

ProjectsCountPercent of TotalAverage ScoreWeighted Score 
    =C*D 
Project A1029% 3.25  0.93  
Project B514% 3.10  0.44  
Project C2057% 2.50  1.43  
 Total35100% 2.95  2.80 =.93+.44+1.43
    Need to get 2.8 NOT 2.95 
      
      
   I get this 2.95 =100% * 2.95
7 REPLIES 7
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @aykim101,

 

Have you worked it out? If so, would you please kindly mark the corresponding reply as an answer? If not, please feel free to ask.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

i still cannot get the total row to sum the weighted score rows above it

 

what do you mean by "add a calculated column"?

Hi @aykim101,

 

What I meant "Add a calculated column" is creating a column rather than measure.

1.PNG

 

Could you please teel me in your scenario, whether above fields [Count], [Percent of Total], [Average Score] and [Weighted Score] are columns or measures?

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @aykim101,

 

For 'Average Score', you could create a measure like:

Average Score = AVERAGE(Sheet1[Score]) 

 

For 'Weighted Score', you could create a calculated column like:

Weighted Score Col = Sheet1[Percent of Total]*[Average Score]

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank you for the reply

that is the logic being used; however the "Total" row needs to sum the row values above it and NOT use the same Weighted Score calculation

 

 

Hi @aykim101,

 

If you add a calculated column into table visual and enable the total row, the "Total" row will sum the row values above it automatically.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Assuming these are measures, you generally have to use an IF statement coupled with a HASONEFILTER statement to calculate the measure one way versus another for the individual rows versus the total row.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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