I have a table of invoices in which a customer may appear 5 times. They may have their name as "K Smith" or "Kate Smith". I have a "customer" table and trying to filter values from the invoice table using this sort of function
Obviously this throws an error that a table of multiple values has been supplied.
for dates you can use a MIN or MAX function to pick out one date where there are multiple values.
Is there any way to pick out the longest entry where there are multiple values so the above would return "Kate Smith"? Generally it seems in my data the longer the entry the better it is.
Thanks for any advice
Mike
Code:
=CALCULATE(VALUES(Invoices[Full Name]),filter(Invoices,Invoices[Unique Customer Code]=Customers[Unique Customer Code]))
for dates you can use a MIN or MAX function to pick out one date where there are multiple values.
Is there any way to pick out the longest entry where there are multiple values so the above would return "Kate Smith"? Generally it seems in my data the longer the entry the better it is.
Thanks for any advice
Mike