Forum Discussion

AlexaderMilland's avatar
AlexaderMilland
Helper III
3 years ago
Solved

Divide every row with a specific row

I have a big exchange rate table, unfortunately all the numbers are from EUR to XXX currency. I would like to alter it to be from DKK to XXX currency, and would be simple just to divide all the Rate...
  • HotChilli's avatar
    3 years ago

    You can get the value by first using Table.SelectRows (you don't need to write this yourself, you can filter from the column header to get the right syntax).

    This returns a table.  You then put the name of the column after it like TableSelectRows(...........[Rate]

    This will return a column.  Now, even though it's a single column from a single row, we need to get the first value with List.First()

    That's one algorithm to do it and you may need to put part of it in a variable to multiply each row by it.

    See how you get on.