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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
avatar456
Helper I
Helper I

Make a measure (total) with a given weight for each value

I have a table with a percent of something in each column. I would like to add a total column as the last column. But since not every column is equally important, I want to assign a weight to each column.

 

PersonAttitudeScoresAttendanceTotal
John Johnson70%60%65%XX %

 

For example, I want attitude and attendance to count for 25% of the total (so together 50%), and scores the other 50%.

 

Any ideas? 

 

Thanks! 

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Try use these measures 

 

Weighted attendance = SUM('Table'[Attendance]) * .25
Weighted attitude = SUM('Table'[Attitude]) * .25
Weighted scores = SUM('Table'[Scores]) * .5
Weighted total =
DIVIDE([Weighted attitude] + [Weighted attitude] + [Weighted scores], 3)
 
 

Thanks for reaching out for help.

I put in a lot of effort to help you, now please quickly help me by giving kudos.

Remember we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button. 

If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime.  I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

View solution in original post

2 REPLIES 2
speedramps
Super User
Super User

Try use these measures 

 

Weighted attendance = SUM('Table'[Attendance]) * .25
Weighted attitude = SUM('Table'[Attitude]) * .25
Weighted scores = SUM('Table'[Scores]) * .5
Weighted total =
DIVIDE([Weighted attitude] + [Weighted attitude] + [Weighted scores], 3)
 
 

Thanks for reaching out for help.

I put in a lot of effort to help you, now please quickly help me by giving kudos.

Remember we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button. 

If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime.  I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

mangaus1111
Solution Sage
Solution Sage

Hi  @avatar456 , 

can you write 4-5 rows of your source table with non confidential data?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.