Forum Discussion
FILTER TABLE BASED ON ANOTHER TABLE
- Anonymous6 years ago
Hello,
As you are trying to access the rows of a table on the one side of the relationship from the many side of the relationship, you need to use RELATED function.
NEW_CUSTOMERS = COUNTX(FILTER(Cust,Cust[REGISTER_DATE]>RELATED(Products[LAUNCH_DATE])),Cust[CUSTOMERID]).
Though using CALCULATE function too we could achieve the same result.
This is yet another way of achieving it, without using calculate.
Regards,
Rakesh
Hello,
As you are trying to access the rows of a table on the one side of the relationship from the many side of the relationship, you need to use RELATED function.
NEW_CUSTOMERS = COUNTX(FILTER(Cust,Cust[REGISTER_DATE]>RELATED(Products[LAUNCH_DATE])),Cust[CUSTOMERID]).
Though using CALCULATE function too we could achieve the same result.
This is yet another way of achieving it, without using calculate.
Regards,
Rakesh