10

Creating PYTD at Day granularity in SAC new model

 1 year ago
source link: https://answers.sap.com/questions/13895357/creating-pytd-at-day-granularity-in-sac-new-model.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Creating PYTD at Day granularity in SAC new modelSkip to Content

Do you have an S- or P- account?
If so, you need SAP Universal ID. In a few months, SAP Universal ID will be the only option to login to SAP Community. Without it, you will lose your content and badges. If you have multiple accounts, use the Consolidation Tool to merge your content.
Get started with SAP Universal ID
1 Answer
Sort by:

Parimala Manot

PYTD can be calculated using restricted measure calculation on Date dimension. See an example below. I have data for full month of June but in bottom tables I have considered till only current date i.e. 3rd June 2023 . The top table shows below 3 measures

  • Signed Data - Total value of June 2023
  • GM-CYTD - YTD value of Gross Margin till 3rd June 2023
  • GM-PYTD - YTD value of Gross Margin on same date last year, i.e. 3rd June 2022

GM-CYTD - YTD Configuration - Restriction by Date. Current time interval> To Date> Year

image.png

image.png

GM-PYTD - YTD Configuration-Restriction by Date. Previous time interval> To Date> Year

image.png

image.png

image.png

You can see that CYTD and PYTD are showing correct results based on tables below showing the granular data and totals.

Please accept/upvote if this helps !!

Nikhil

Attachments

image.png (64.6 kB)
image.png (6.5 kB)
image.png (28.6 kB)
image.png (30.9 kB)
image.png (6.5 kB)
1 comment
1 hour ago

the suggest calculation is at story level. I am looking for model level calculations. I tried Restrict and lookup at model level , and when consumed in the story, I have forced to drill to day granularity.I am trying to maintain the formula in model and not at story level.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK