Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

DTD, MTD, YTD Calculation

Reply
Contributor
Posts: 29

DTD, MTD, YTD Calculation

How to calculate DTD, MTD, YTD calculation in a single section of VA 6.4?

Regular Contributor
Posts: 173

Re: DTD, MTD, YTD Calculation

Dear avinesh,

One of the options is to create a new calculated field that results in YTD. You can use this new value for reporting.

Example YTD:

YTD.png

The New calculated item YTD will only be filled if the DayOfYear is less/equal of actual DayOfYear

YTD_R.png

Of course it all depends on the way you want to show your results and how your definitions of YTD etc. exactly are.

For MTD you can add that also the months are equal.  etc.ect.

Greetings and good luck.

Ask a Question
Discussion stats
  • 1 reply
  • 2016 views
  • 1 like
  • 2 in conversation