Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
102 | |
70 | |
68 | |
54 | |
41 |
User | Count |
---|---|
156 | |
83 | |
66 | |
64 | |
61 |