Forum Discussion

CupidC's avatar
CupidC
Helper II
2 years ago
Solved

Multiplying Row-by-Row in a Table

Hello, I'm seeking assistance on how to perform row-by-row multiplication within a table, (measure or calculated column) similar to the SUMX function, but instead of iterating through each row to sum...
  • vicky_'s avatar
    2 years ago

    Try the following measure:

    Cumulative Rate = PRODUCTX(FILTER(ALL('Table'), 'Table'[Month] <= EARLIER('Table'[Month])), 'Table'[Interest Rate])

    Assuming that the Month column is unique (or at least, you can find a way to make it so that it's unique by combining it with a year number or you can use some sort of index column instead).

  • Ahmedx's avatar
    Ahmedx
    2 years ago
    sorry I forgot to add a column 'Table'[Intere Rate]