Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
106 | |
87 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
81 | |
72 |