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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors