Skip to main content
Question

Cumulative sum based on Regulatory year

  • February 6, 2020
  • 3 replies
  • 38 views

Hi there,

 

I am calculating cumulative sum using one of the existing posts (https://knowledge.safe.com/questions/104692/running-total.html?childToView=104693#answer-104693 ). However, the problem is that I wanted to calculate the cumulative sum based on the regulatory year (1-4-Year to 31-3-Next Year). The Problem With the approach I have been using is it started cumulative sum from the start of the dataset. Is there any way I could calculate the cumulative sum based on the regulatory year.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • February 6, 2020

Hi @muhammad_yasir, If the features have an attribute storing a regulatory year, you can set it to the Group By parameter in the StatisticsCalculator to calculate cumulative statistics for each year.


  • Author
  • 30 replies
  • February 7, 2020

Hi @muhammad_yasir, If the features have an attribute storing a regulatory year, you can set it to the Group By parameter in the StatisticsCalculator to calculate cumulative statistics for each year.

I am calculating cumulative sum for regulatory year on monthly basis. For this purpose, I created column for Month-Regulatory year. Regulatory year starts from 1 April, and Statistic calculator do cumulative sum from April-RY to July-RY. However, it does not continue from August-RY to onwards. I have also used sorter on the date but didnt resolve the issue. I have attached the screen shot of statisticcalculator

 


  • Author
  • 30 replies
  • February 7, 2020

Here is the snapshot of the date and cumulative sum.. As you noticed that when the month changes, values decreased, instead of increasing.