Jan 06 2023 12:25 AM
I have a list of customers serving different brands. Please see attached sample data. Each customer may be working with one or multiple brands. I am trying to determine which customers are new. The rule is that a supplier's active since date (and they may have more than one due to working with multiple brands) cannot be earlier than the current month.
Thank you in advance for your help!
Jan 06 2023 01:09 AM
@alpertakci I would use Power Query for such a task. See if the attached solution works for you.
Jan 06 2023 01:22 AM
SolutionAssuming I understood, with Excel 2021 or 365:
in K5:
=LET(
uCustomers, UNIQUE(Table1[Customer]),
FILTER(uCustomers, MINIFS(Table1[Active Since],Table1[Customer],uCustomers) >= EOMONTH(TODAY(),-1)+1)
)
Jan 06 2023 04:22 AM
If you opt for @Riny_van_Eekelen's PQ solution be aware you can simplify the Filtered Rows step with:
= Table.SelectRows(#"Grouped Rows", each Date.IsInCurrentMonth([GrpByCustomer]))
...assuming your version of Excel supports function Date.IsInCurrentMonth
Jan 06 2023 04:25 AM
Jan 06 2023 04:31 AM
Jan 06 2023 06:02 AM
@alpertakci Glad this helped & Thanks for providing feedback