Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowHi 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!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
98 | |
69 | |
66 | |
49 | |
41 |