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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
NiugeS
Helper V
Helper V

Adding Up A Score for Values in a Column

Hi all,

 

I've been playing with something that is likely quite simple but having difficult working out how to do it.  I have two tables one consisting of names/items with a yes / no if they have the items.  I have a second table that has a score.  If the user has any of the item, I want it to provide a total score for each of the items.

 

For example using Jane:

Jane total = Car (5) + Bicycle (2) + Skateboard (0) + Garage (3) should return a total of 10 out of a total possible of 11 that I will add to a gauge.  I hope the below is clear however I have attached the pbix here for review.

 

NiugeS_0-1629448389773.png

NiugeS_1-1629448396848.png

 

If anyone has some guidance of how I create the relationships (or skip this and just add each score in a measure), please let me know.  I tried to create a measure but not sure to add up the if statements.

Many thanks

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture2.png

 

Score measure : =
CALCULATE (
SUMX ( Inventory, RELATED ( Score[Score] ) ),
FILTER ( Inventory, Inventory[Value] = "Yes" )
)
 
 
Score measure ALL : =
SUMX(Inventory, RELATED(Score[Score]))
 
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
NiugeS
Helper V
Helper V

@Jihwan_Kim This is brililant!  Thank you.. didn't think to unpivot etc.  Much appreciated although I will need to spend some time understanding the measure!

Jihwan_Kim
Super User
Super User

Picture2.png

 

Score measure : =
CALCULATE (
SUMX ( Inventory, RELATED ( Score[Score] ) ),
FILTER ( Inventory, Inventory[Value] = "Yes" )
)
 
 
Score measure ALL : =
SUMX(Inventory, RELATED(Score[Score]))
 
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.