This content has been marked as final.
Show 1 reply
-
Re: Exclude total based on current selection
Sunny Talwar Jan 18, 2018 12:58 PM (in response to Cornee Hertogh)May be like this for average age ignoring the current selection
If(IF(((GetSelectedCount([Jaar])=0)*(GetSelectedCount([Maand])=0)),
Avg({<Jaar={$(=max(Jaar))},[CM Flag]={'1'}>}Leeftijd),
Avg({<[Jaar-Maand]=P({$<Jaar={$(=max(Jaar))}>}[Jaar-Maand]),Jaar={$(=max(Jaar))}>}Leeftijd)) <> 0,
IF(((GetSelectedCount([Jaar])=0)*(GetSelectedCount([Maand])=0)),
Avg({1<Jaar={$(=max(Jaar))},[CM Flag]={'1'}>}Leeftijd),
Avg({1<[Jaar-Maand]=P({$<Jaar={$(=max(Jaar))}>}[Jaar-Maand]),Jaar={$(=max(Jaar))}>}Leeftijd)))