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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors