Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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