The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I've got a table which contains the list of customers of a company:
Each customer has a code and a name, and some of them change their name over time.
My intent is to create a new table that contains only the most recent names of each customer, so the ideal result would be:
because client 001 has become 003 and then 006, and client 002 has became 005.
How can I do it? This is the pbix file: https://www.dropbox.com/s/z1s9hgw4p5qtrsl/Customers.pbix?dl=0
Thanks for the help
Solved! Go to Solution.
Create a new table like
Filtered Customers = CALCULATETABLE(
Customers,
EXCEPT( VALUES( Customers[Code]), VALUES( Customers[OldCode]))
)
Create a new table like
Filtered Customers = CALCULATETABLE(
Customers,
EXCEPT( VALUES( Customers[Code]), VALUES( Customers[OldCode]))
)
Many thanks, it perfectly works!
I found that an alternative way consists of a "Right anti" merge between Customers.OldCode on power query