Forum Discussion

AndreasFu's avatar
AndreasFu
Frequent Visitor
3 years ago
Solved

How to manually change a specific cell?

Hi, I have a problem where I dont get the correct data from third party. I can´t manually edit the source (csv file) since we download a new version of it every 12 hours. So my idea was to manually ...
  • gregoliveira's avatar
    3 years ago

    Hi!

     

    The easier way to accomplish what you want is first you replace for a standard value, then use the formula bar to edit the code, something like, for example:

     

    From:

    = Table.ReplaceValue(
    #"Last Step",
    null,
    "standard",
    Replacer.ReplaceValue,
    {"ColumnToReplace"}
    )

    To:
    = Table.ReplaceValue(
    #"Last Step",
    null,
    each if [ColumnToAnalyze] = "Value" then "Answer 1" else "Answer,
    Replacer.ReplaceValue,
    {"ColumnToReplace"}
    )

     

    If you have trouble to define the expression to replace (bold snippet), create a new column to form the value, then use it here.

    Hope I helped you!