Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to create a column with a filter for grouping

monthcurrencysalessales/month%currency/month

JAN

eur103033,33%
JANusd203066,66%
FEBeur52025%
FEBusr152075%

Hello, I try to create the sales/month column but I can't get the result expected. I want to have the sum of the sales for all rows where the month is the same. Any Idea please ?

  • Anonymous ,You can get month sales anew column like

    sumx(filter(table,[month] =earlier([month])),[sales])

2 Replies

  • Anonymous ,You can get month sales anew column like

    sumx(filter(table,[month] =earlier([month])),[sales])

    • Anonymous's avatar
      Anonymous
      Not applicable

      I really appreciate your help. It works as expected (y)