mgirvin
Well-known Member
- Joined
- Dec 15, 2005
- Messages
- 1,245
- Office Version
- 365
- Platform
- Windows
Dear Team,
Question #1:
If I create a Calculated Column with this aggregate calculation:
SUM-Aggregate =SUM(PlayersTable[Salary])
Is this a correct statement:
“Aggregate functions are affected by Filter Context, but will ignore Row Context and will show the same aggregated number in every row of the Calculated Column.”
Question #2:
If I create a Calculated Column with this aggregate calculation inside the CALCULATE function:
SUM-Aggregate-in-CALCULATE =CALCULATE(SUM(PlayersTable[Salary]))
Are these correct statements (these are my interpretations of Alberto Ferrari’s & Marco Russo’s book MS Excel 2013 Building Data Models with PowerPivot):
“An aggregate calculation inside CALCULATE will show just the row values not the aggregate values, and so if there is no relationship on this table, the Calculated Column will simply show the individual amounts for each row from the Salary column.”
“Inside CALCULATE, there is no Row Context”
“If you use only the first argument in CALCULATE, it will transform Row Context to Filter Context.”
Question #3:
If the three statements are TRUE from question #2, how do I make sense of them given that as a person new to PowerPivot I “see” CALCULATE returning individual row amount and thus think that CALCULATE is doing a Row Context”
Question #4:
If I create a Calculated Field:
TotalSalary:=SUM(PlayersTable[Salary])
And then create this Calculated Column:
SUM-CalculatedField-Auto-Call-To-CALCULATE =[TotalSalary]
Is this a correct statement:
“The Calculated Field comes with an automatic CALCULATE function wrapped around it and so because it is in a Calculated Column it will show just the row values and not the aggregated value”.
Sincerely, Mike "Struggling To Learn PowerPivot" Girvin
Question #1:
If I create a Calculated Column with this aggregate calculation:
SUM-Aggregate =SUM(PlayersTable[Salary])
Is this a correct statement:
“Aggregate functions are affected by Filter Context, but will ignore Row Context and will show the same aggregated number in every row of the Calculated Column.”
Question #2:
If I create a Calculated Column with this aggregate calculation inside the CALCULATE function:
SUM-Aggregate-in-CALCULATE =CALCULATE(SUM(PlayersTable[Salary]))
Are these correct statements (these are my interpretations of Alberto Ferrari’s & Marco Russo’s book MS Excel 2013 Building Data Models with PowerPivot):
“An aggregate calculation inside CALCULATE will show just the row values not the aggregate values, and so if there is no relationship on this table, the Calculated Column will simply show the individual amounts for each row from the Salary column.”
“Inside CALCULATE, there is no Row Context”
“If you use only the first argument in CALCULATE, it will transform Row Context to Filter Context.”
Question #3:
If the three statements are TRUE from question #2, how do I make sense of them given that as a person new to PowerPivot I “see” CALCULATE returning individual row amount and thus think that CALCULATE is doing a Row Context”
Question #4:
If I create a Calculated Field:
TotalSalary:=SUM(PlayersTable[Salary])
And then create this Calculated Column:
SUM-CalculatedField-Auto-Call-To-CALCULATE =[TotalSalary]
Is this a correct statement:
“The Calculated Field comes with an automatic CALCULATE function wrapped around it and so because it is in a Calculated Column it will show just the row values and not the aggregated value”.
Sincerely, Mike "Struggling To Learn PowerPivot" Girvin