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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have to create a custom Lane code in two ways:
1. Origin name - Destination name ( for any next row if NEWorigin = INITIALdestination and NEWdestination=INITIALorigin) It should have a "same code".
2. Origin name - Destination name ( for any next row if NEWorigin = INITIALdestination and NEWdestination=INITIALorigin) It should have a "different code".
Hence I want to come up with a DAX measure to do so, such that the new data been added can dynamically associate with it.
My Data is as follows in columns:
Sorry, what? Your two cases read the same. Sample data, expected output, how to get from a to b. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |