Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Help with DAX

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 IDProduct list nameProduct SKUQuantity
02-140885Broadband Productp3-fttp301
02-140885Broadband Productp3-2501
02-140885(not set)installation251
02-140887Broadbandp3-fttp311
02-140887Broadbandp31
02-140887(not set)phone1

Second table

Transaction IDProduct list nameProduct SKUQuantityNew list name
02-140885Broadband Productp3-fttp301Broadband Product
02-140885Broadband Productp3-2501Broadband Product
02-140885(not set)installation251Broadband Product
02-140887Broadbandp3-fttp311Broadband
02-140887Broadbandp31Broadband
02-140887(not set)phone1Broadband
1 ACCEPTED 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.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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. 🙂

HotChilli
Community Champion
Community Champion

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.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.