Quantcast
Viewing all articles
Browse latest Browse all 5403

Need to apply MTD logic for actual and prior year

Hi Team,

 

We are facing an issue with MTD calculation based on formula variables,

 

Issue: MTD Only (Actual and Prior Year) – show the same value for MTD. 

 

Requirement:

When the query is run for a selected month, the query should be run for that month based on the Last TECO Date (Input Variable).

• For example, dashboard is run for January 2014, the calculation of MTD should be based on the Last TECO Date : i.,e if I enter older date/month (not current date)[ 1/20/2014 means it should calculate for 1/1/2014 – 1/31/2014]

• If the dashboard is run for the current month, the MTD calculation should be on Last TECO Date = 1st day of month – Current Day

 

The above same calculation logic should be applicable for MTD prior year: instead of the input variable value, the value for previous year should be considered

 

Final Calculation:

  • If Last Labour Date is blank, 0, else Last TECO Date – Last Labour Date (by individual line item)

 

Here we created two formula variables for last teco date and last labour date.

Also created 2 Customer Exit variable for MTD Actual calculation.

 

We have pulled the formula variable and CE variable into the selection and created a new CKF (Teco date).

We have done the final calculation on the basis of the ( (labour date ==0)*0 + last teco date-last labour date )for MTD ACTUAL.

 

 

MTD Prior Year-

when have done calculation on the basis of the( (labour date ==0)*0 + last teco date-last labour date )for MTD Prior year by giving offset -12 to the value.

 

Here for MTD Actual and MTD Prior year values are coming same  ,we tried with by doing customer exit variables as well, Still values are coming same.

 

please give your valuable inputs/suggestions to proceed for this requirement .


Viewing all articles
Browse latest Browse all 5403

Trending Articles