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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
dfsadvantage
Frequent Visitor

Measure to Sum all values by another value and ignore all filters

Looking for assitance in aggregating vales by team and populate that aggregated value for each row where team = that players team.

 

I have been trying to create measure as follows:

dax.png

1 ACCEPTED SOLUTION

The earlier proposed solution was close.

The duplication probably happened if they faced the same team more than once in the season.

 

You need a calculated column:

TeamRuAtt = CALCULATE(SUM(RuAtt); ALLEXCEPT(Table, Team, Week))

View solution in original post

5 REPLIES 5
camargos88
Community Champion
Community Champion

Hi @dfsadvantage ,

 

Try something like:

 

CALCULATE(SUM(RuAtt); ALLEXCEPT(Table, Team, Opp))

 

Did I answer your question? Mark my post as a solution!
Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Didnt work for me, showed multiple rows of the same player...Here is a better description of what I am trying to do:

1)Calculate the Total RuAtt for each Team by summing the RuAtt for each player on that team.

2)Display the Total RuAtt  for each player on the corresponding team/

Dax1.png

Anonymous
Not applicable

// If the model is correct, then such a measure is easy:

[RuAtt for Team] =
	CALCULATE(
		[RuAtt], // this should be measure
		VALUES( Teams[Team] ),
		ALL( Teams )
	)
	
// But if your model is incorrect... well,
// I can't help you, I'm afraid.

A correct model is one that follows the principles of dimensional design called "star-schema."

 

Best

D

The earlier proposed solution was close.

The duplication probably happened if they faced the same team more than once in the season.

 

You need a calculated column:

TeamRuAtt = CALCULATE(SUM(RuAtt); ALLEXCEPT(Table, Team, Week))

Thank you - Calculated Column was the solution. I appreciate your help..!

 

@winsterpop 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!