Dynamic Current Month, Year-to-Date, Current Year and Previous Measures in SAP Datasphere
Share

Many developers working with SAP Datasphere and with an SAP BW background have the requirements to calculate current-year, previous-year, current-month, or year-to-date measure values dynamically based on user input.

We have such a requirement as well.

Users need to enter a Reporting Month and Reporting Year on the frontend.

dohaidang_le_0-1786650176492.png

Then based on the input a set of restricted measures are calculated

  • MTH means  Year = Reporting Year and Month = Reporting Month
  • YTD means Year = Reporting Year  and Month <= Reporting Month
  • PY-MTH means Year = Reporting Year -1   and Month = Reporting Month
  • PY-YTD means Year = Reporting Year -1   and Month <= Reporting Month
  • PY (Total Previous year) means Year = Reporting Year -1  

dohaidang_le_1-1786650191395.png

Furthermore, the default values for Reporting Month and Reporting Year should not be arbitrary. They should be determined based on the last closed period in our CO Closing Timetable.

 

 

 

  Read More Technology Blog Posts by Members articles 

#abap

By ali

Leave a Reply