cancel
Showing results for 
Search instead for 
Did you mean: 
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 Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors