Forum Discussion
Thiagops
3 years agoHelper II
Ambiguity when relating tables
Good morning,
I need to know how many customers a seller registered in the month.
I have the following tables:
- Calendar (Related to outgoing invoice)
- Sellers (related to customers)
- Customers (Related to outgoing invoice)
- Exit invoice
I'm using data tracking to choose the seller and the month, but I believe that because the customer table is not directly related to the calendar, it doesn't work. The result is not correct. I tried to relate the calendars table with the customers, but it says that it generates ambiguity with the outgoing invoice.
I'm using the following measure:
New customer registration = DISTINCTCOUNTNOBLANK('CUSTOMER (WALLET)'[CLI_CODIGO])
You are right. Please try
Cadastro de NOVOS clientes2 = CALCULATE ( DISTINCTCOUNTNOBLANK ( 'CLIENTE (CARTEIRA)'[CLI_CODIGO] ), 'CLIENTE (CARTEIRA)'[Registration Date] IN VALUES ( CALENDARIO[Date] ) )