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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
cllkaya
Frequent Visitor

If null replace with next cell

I would like to bring "lookupares.BS Code" value to "BS Code" column, if the "BS Code" column value is null. Coudl you help 

 

cllkaya_1-1631448982702.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @cllkaya ,

 

You may add a conditional column like

4.png

 

Then remove the original column and rename the new column

5.png6.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @cllkaya ,

 

You may add a conditional column like

4.png

 

Then remove the original column and rename the new column

5.png6.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

cllkaya
Frequent Visitor

Expression.Error: The import preceding step matches no exports. Did you miss a module reference?

 

I must miss a very basic thing, code gives an error message above

CNENFRNL
Community Champion
Community Champion

= Table.ReplaceValue(#"preceding step", each [BS Code], each if [BS Code] is null then [lookupares.BS Code] else [BS Code], Replacer.ReplaceValue, {"BS Code"})

Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors