This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi, I am looking to create a new column on an existing table but I'm not sure of the best way to proceed. My data is as the first table, I want to add the column 'New list name' to the table as the second table at each change of Transaction ID.
So I need to replace the value '(not set)' with the correct list name dependent on the Transaction ID. Thanks
First table
| Transaction ID | Product list name | Product SKU | Quantity |
| 02-140885 | Broadband Product | p3-fttp30 | 1 |
| 02-140885 | Broadband Product | p3-250 | 1 |
| 02-140885 | (not set) | installation25 | 1 |
| 02-140887 | Broadband | p3-fttp31 | 1 |
| 02-140887 | Broadband | p3 | 1 |
| 02-140887 | (not set) | phone | 1 |
Second table
| Transaction ID | Product list name | Product SKU | Quantity | New list name |
| 02-140885 | Broadband Product | p3-fttp30 | 1 | Broadband Product |
| 02-140885 | Broadband Product | p3-250 | 1 | Broadband Product |
| 02-140885 | (not set) | installation25 | 1 | Broadband Product |
| 02-140887 | Broadband | p3-fttp31 | 1 | Broadband |
| 02-140887 | Broadband | p3 | 1 | Broadband |
| 02-140887 | (not set) | phone | 1 | Broadband |
Solved! Go to Solution.
If you're actually replacing/editing data in the data set, the best way is to use Power Query. DAX is for analyzing the data afterwards.
In the query editor, you can use replace to find all instances of "not set" and replace them with null values. Then you can order the data as needed and fill down to fix the Product List Name. If you want the second column instead of fixing the original, then copy the column and do the same thing.
Note that the fill down has potential to give you funky results if the first item when ordered by Transaction ID is a blank.
In the query editor replace values of (not set) to "null" and then in the transform tab use fill Down on the desired column.
Please mark this as a solution if it answers your question. 🙂
Does it have to be DAX? Would a simple 'Fill Down' in Power Query editor meet the requirement?
If you're actually replacing/editing data in the data set, the best way is to use Power Query. DAX is for analyzing the data afterwards.
In the query editor, you can use replace to find all instances of "not set" and replace them with null values. Then you can order the data as needed and fill down to fix the Product List Name. If you want the second column instead of fixing the original, then copy the column and do the same thing.
Note that the fill down has potential to give you funky results if the first item when ordered by Transaction ID is a blank.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 22 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 20 | |
| 19 | |
| 19 |