How to use Timesum function?
In Level 2 sprint i got stuck at Timesum function, please help me out
Best Answer
-
Hi Naresh, what in particular has you stumped?
The TIMESUM function is used when we want to calculate the value of between specific periods of time (or for all time periods). When using this function, the module should not have a time scale applied.
0
Answers
-
Hi Naresh,
The Timesum function is used to aggregate values over a specified time range. It calculates the sum of a specified line item or expression for a given time period.
- Identify the line item or expression you want to aggregate. Let's say you have a line item called "Sales" that you want to sum over a specific time range.
- Determine the time range over which you want to aggregate the values. This can be done using time periods or references to time dimensions in your model. For example, you might want to sum the sales values for the past three months.
Timesum(Line Item or Expression, Start Time Period, End Time Period)
In our example, the formula would look something like this:Timesum(Sales, Current Period - 2, Current Period)
Here, we are summing the "Sales" values from the current period minus 2 (two months ago) to the current period.- Apply the Timesum formula to the desired target cell. This could be in a module or a dashboard, depending on your use case.
If the above answer helps you out, please accept it as a solution, which motivates us to contribute more.
Thanks
Badam Anjani Prasad
Matasma Digital Technologies
1 -
Hi @NareshShahus , follow the syntax to levarage your formula creation in a target module(with no time dimension) where Line item to aggregate, Start period, end period can be mapped from source module,
TIMESUM(Line item to aggregate [, Start period] [, End period] [, Aggregation method]
0 -
Hello, To assist you with the "Timesum" function in Level 2 sprint, I need more details about the specific problem or challenge you are facing. Please provide more information or specify the issue you are encountering with the "Timesum" function, and I'll be happy to help you with a solution or guidance.
0 -
Thanks for the info.
0