Forum Discussion
SUM rows up to specific column
Hi everyone,
I have a table with a list of project financials split across periods. The period column is a text column based on financial periods. I need two measures which calculate based off a selected period from a slicer:
- A measure which sums all periods from the selected period onwards
- A measure which identifies the next period from the selected period, and sums all periods from that point onwards
The closest equivalent I can think of is SUMPRODUCT in Excel, (e.g. =SUMPRODUCT(([periodrow]>=DATE([SELECTED DATE]))*[VALUES])).
However even in Excel I am not sure if this is possible unless I change the data type to a date. I can also transform the data structure and unpivot it if that helps.
Any ideas?
AmiK
Hi,
We must figure out a way to convert the periods e.g. 6-21 to a proper date. This will allow us to use the Date Intelligence functions.
2 Replies
- Ashish_Mathur
Super User
Hi,
We must figure out a way to convert the periods e.g. 6-21 to a proper date. This will allow us to use the Date Intelligence functions.
- imranamikhan
Helper V
Thanks Ashish I will work on obtaining the date information with the customer