Forum Discussion
Circular relationship
- 6 years ago
You should be able to solve this by creating an inactive relationship between the Date and Clientes tables
Then creating a measure with the USERELATIONSHIP function to activate this relationship for that measure.
Cliente Registrations = CALCULATE( countrows(Clientes), USERELATIONSHIP(Clientes[Fecha_Alta], Dates[Date]))This will allow you to see other measures using the active relationship, but just for the count of client registrations to use the relationship between Clientes and Dates
eg.
Hello
I show you a data example on the picture with the measures. The relation between Cabecera and Clientes use the ID_CLIENTE column. The relacionship between Date and Cabecera use the column FECHA.
I need to calculate the number of new customers by month (second graph) and filter all report by year. Example:
You should be able to solve this by creating an inactive relationship between the Date and Clientes tables
Then creating a measure with the USERELATIONSHIP function to activate this relationship for that measure.
Cliente Registrations = CALCULATE( countrows(Clientes), USERELATIONSHIP(Clientes[Fecha_Alta], Dates[Date]))
This will allow you to see other measures using the active relationship, but just for the count of client registrations to use the relationship between Clientes and Dates
eg.