Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to show also the unassociated rows in a dimension with an Aggr() fuction like below?
=Aggr(ALT(EmploymentEnddate,0)=0, EmployeeFullName,
if(Min(Year)<= Year(EmploymentEnddate) , EmployeeFullName)), EmployeeFullName, EmploymentEnddate)
I think it is something like the formula below but this gives me no dimension results
=Aggr(ALT(EmploymentEnddate,0)=0, Only({($ 1<EmployeeFullName={'*'}>)>}EmployeeFullName),
if(Min(Year)<= Year(EmploymentEnddate) , Only({($ 1<EmployeeFullName={'*'}>)>}EmployeeFullName))), EmployeeFullName, EmploymentEnddate)
Appreciate your help.
Your expression contains errors:
Thanks Henric for your reply.
You are right with point 3.
An if statement was missing in the formula above.
I changed the expression with your points included.
=Aggr(if(ALT(EmploymentEnddate,0)=0, Only({1<EmployeeFullName={'*'}>}EmployeeFullName),
if(Min(Year)<= Year(EmploymentEnddate), Only({1<EmployeeFullName={'*'}>}EmployeeFullName))), EmployeeFullName, EmploymentEnddate)
This value shows also no values in the dimension. (See attachment 1)
If I change the '1' in an '-' it gives me results but if I select one value it doesn't show me the unassociated rows. (See attechment 2)
Appreciate your anwser.
Also, you should use double quotes or brackets in your search. Single quotes will not work.
I.e. {"*"} or {[*]} but not {'*'}
Thanks Henric_Cronström!
The formula works but the 'Only' function doesn't fix the problem to show also not selected values in the dimension. (See attachment 2)
The formula is now:
=Aggr(if(ALT(EmploymentEnddate,0)=0, Only({1<EmployeeFullName={"*"}>}EmployeeFullName),
if(Min(Year)<= Year(EmploymentEnddate), Only({1<EmployeeFullName={"*"}>}EmployeeFullName))), EmployeeFullName, EmploymentEnddate)
Does anyone have a solution for me?