Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Conditional accumulative in Power Query

Hello, please help )   I need to change value (text type) from mapping table. But it is important to keep the filter  (not to use Merge table 😞 )   what I have Table1 Table 2   I...
  • AlienSx's avatar
    AlienSx
    2 years ago

    not very performant but one step

        replace = Table.ReplaceValue(
            Table1, 
            (o) => o[crf_form_id],
            (n) => n[Zones],
            (v, o, n) => 
                try Table2{[crf_form_id = o, number = n]}[decode]
                otherwise null,
            {"Zones"}
        )