Forum Discussion
Anonymous
3 years agoNot applicable
Using parameter in calculation
Hi, I am trying to use the user selection to calculate a measure: User will provide me the RetirementAge parameter, and based on the user selection I want to calculate the total FTE that is abo...
- 3 years ago
Anonymous Try:
SUMX(FILTER('1' ,'1'[Age] >= RetirementAge[RetirementAge Value] ,[FTE] ) that's if RetirementAge Value is a measure
Greg_Deckler
Community Champion
3 years agoAnonymous Try:
SUMX(FILTER('1'
,'1'[Age] >= RetirementAge[RetirementAge Value]
,[FTE]
)
that's if RetirementAge Value is a measureAnonymous
3 years agoNot applicable
Great, worked nicely.
I also had a variable, so had to use together with CALCULATE:
HC_RetirementAge =
VAR
EndDate = LASTDATE('Dates'[Date ID])
Return
CALCULATE(SUMX(FILTER('1' ,'1'[Age] >= RetirementAge[RetirementAge Value])
, '1'[HC_ED])
,'1'[Event Date] = EndDate
, '1'[Data Type] = "Headcount"
)
Thank you !
Thank you !