Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
DP_Boy
Contributor II
Contributor II

Filter dimension in table

I have a table that shows the budget and booked hours of our employees. 

Now I want to filter the employees that stopped working in our company before the selected date.

In the demension I made the following expression:

=if( ALT(EmploymentEnddate,0)=0, EmployeeFullName, if(Min(Year)< Year(EmploymentEnddate), EmployeeFullName))

If I test it in a measure it gives me the correct values but in the demension it gives me an invalid demension. 

How can I solve this problem?

 

Labels (2)
1 Solution

Accepted Solutions
brunobertels
Master
Master

Hi may be this 

aggr(

if( ALT(EmploymentEnddate,0)=0, EmployeeFullName, if(Min(Year)< Year(EmploymentEnddate), EmployeeFullName))

, EmployeeFullName,EmploymentEnddate)

View solution in original post

2 Replies
brunobertels
Master
Master

Hi may be this 

aggr(

if( ALT(EmploymentEnddate,0)=0, EmployeeFullName, if(Min(Year)< Year(EmploymentEnddate), EmployeeFullName))

, EmployeeFullName,EmploymentEnddate)

DP_Boy
Contributor II
Contributor II
Author

Thanks @brunobertels that works!