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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
rde
Regular Visitor

I have a replace formula that appears correct but is giving an error

=Table.ReplaceValue(#"Change Type", EACH _[Resolved [Incidents]],"null",ReplaceValue,{Closed})

 

The error message is  "Token Comma expected"

 

basically I have a column with dates  Resolved [Incidents]

it has some null values.

 

If there is a null value in Resloved [Incidents] I want to replace it with the date in field [Closed]

 

What am I missing?

 

1 ACCEPTED SOLUTION
edugoncalves
Resolver I
Resolver I

Hi @rde ,

Try this:

 

= Table.ReplaceValue(#"Change Type", each [Incidents], each if [Incidents] = null then [Closed] else [Incidents],Replacer.ReplaceValue,{"Incidents"})

 

 

Best Regards,

Eduardo

View solution in original post

2 REPLIES 2
rde
Regular Visitor

Thank for your help, it is working great

edugoncalves
Resolver I
Resolver I

Hi @rde ,

Try this:

 

= Table.ReplaceValue(#"Change Type", each [Incidents], each if [Incidents] = null then [Closed] else [Incidents],Replacer.ReplaceValue,{"Incidents"})

 

 

Best Regards,

Eduardo

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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