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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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