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

DTD, MTD, YTD Calculation

Posts: 29

DTD, MTD, YTD Calculation

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

Regular Contributor
Posts: 191

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:


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


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
  • 1 like
  • 2 in conversation