Forum Discussion

Andrew_lu1933's avatar
Andrew_lu1933
Regular Visitor
4 years ago
Solved

How to use Table.ReplaceMatchingRows() third paramters?

in document, we see there is third paramters, but we can't find how to use third parameter.

 

 

Table.ReplaceMatchingRows(
table as table, 
replacements as list, 
optional equationCriteria as any
)

 

I have one requirement, if [Name] = "GZ", each [A1] column == [A], [B1]==[B], 

can use Table.ReplaceMatchingRows ?

if use Table.ReplaceValue() only change one column in one time!

 

  • NewStep=Table.FromRecords(Table.TransformRows(PreviousStepName,each if [Name]="GZ" then _&[A1=[A],B1=[B]] else _))

1 Reply

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    NewStep=Table.FromRecords(Table.TransformRows(PreviousStepName,each if [Name]="GZ" then _&[A1=[A],B1=[B]] else _))