LuisPulido
New Member
- Joined
- Apr 27, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
So I manage to create a dynamic range of dates with all the 1st of month between a period of time.
What I want to do, is sum all the expenses of respective month from another table. That result should be another dynamic range of the same size as the one with the dates in order to create the following plot
The previous plot is made with a SUMIFS and works great, however the Sum need to be filter by some values from another table and as SUMIFS do not support to use formulas in the criteria range I need to use FILTER inside of a SUM and the I can multiply the result by SEQUENCE(X,,,0) to have the same size
The formula that I am using is:
=SEQUENCE(ROWS(X2#))*
SUM(FILTER(Table1[Sales],
(Table1[Date]>=X2#)*
(Table1[Date]<=EOMONTH(--X2#,0))
))
What I want to do, is sum all the expenses of respective month from another table. That result should be another dynamic range of the same size as the one with the dates in order to create the following plot
The previous plot is made with a SUMIFS and works great, however the Sum need to be filter by some values from another table and as SUMIFS do not support to use formulas in the criteria range I need to use FILTER inside of a SUM and the I can multiply the result by SEQUENCE(X,,,0) to have the same size
The formula that I am using is:
=SEQUENCE(ROWS(X2#))*
SUM(FILTER(Table1[Sales],
(Table1[Date]>=X2#)*
(Table1[Date]<=EOMONTH(--X2#,0))
))