Skip to Content
Technical Articles
Author's profile photo Marco Krapf

Focused Insights OCC Dashboard: Calculate values with a fixed operand

Introduction

According to the official SAP documentation, to use the Calculation Data Provider ( /STDF/DP_CALCULATION ), two queries must be created that serve as operands. However, if you want to see data calculated by a query and a fixed value, there is a simple trick.

In this blog post, I’ll take you step-by-step to a nice graph with fake data for demonstration purposes that is easy to customize for your own needs. Few words, lots of screenshots. I hope you enjoy it.

verage%20ticket%20processing%20time%20in%20calendar%20week%2028/2021%3A%20530%20days.%20You%20can%20do%20better%21%20%3B-%29

Data converted from hours to days through division by the fixed value of 24
Example: Average ticket processing time in calendar week 28/2021 – 530 days. You can do better!

 

Reason for exploring the Calculation DP

When reading chapter 5.2 of the SAP Community Wiki, which deals with the average processing time of tickets in the ITSM DP, I asked myself why the data is displayed as hours in a Focused Insights OCC dashboard while it is displayed as days in the BW query. That’s when I got the idea to somehow divide the data for the dashboard by 24. If that worked, it would greatly expand the capabilities of the Calculation Data Provider.

Different%20units%20for%20the%20average%20processing%20time%20of%20ITSM%20tickets%20%28Focused%20Insights%3A%20hours%2C%20BW%20Query%3A%20days%29

Different units for the average processing time of ITSM tickets (Focused Insights: hours, BW Query: days) – https://wiki.scn.sap.com/wiki/display/SM/DP_ITSM

 

By the way … this wiki page is out of date, and the BW query has changed with SAP Solution Manager 7.2. Nevertheless, it is a nice example for a possible application of the calculation DP.

 

SAP Documentation

Every official guide tells us that we have to create two queries for using the Calculation DP.

SAP%20Community%20Wiki%20%28%20https%3A//wiki.scn.sap.com/wiki/display/SM/Calculation+Data+Provider%20%29

SAP Community Wiki (https://wiki.scn.sap.com/wiki/display/SM/Calculation+Data+Provider)

 

OCC%20Dashboard%207.2%20User%20Guide%20%28%20https%3A//help.sap.com/doc/321a71ee55f849b5901f99ad813af6af/280/en-US/FINSIGHTS_OCC_Dashboard.pdf%23page%3D78%20%29

OCC Dashboard 7.2 User Guide (https://help.sap.com/doc/321a71ee55f849b5901f99ad813af6af/280/en-US/FINSIGHTS_OCC_Dashboard.pdf#page=78)

 

Step-by-step guide

Step 1: Create a query with the basic data

For this showcase I created a query using the ITSM Data Provider ( /STDF/DP_ITSM ) with the KPI “Average Processing Time” selected.

xxx

 

Step 2: Create a second query with the calculation

Creating a calculation always requires two operands and an operator such as addition, subtraction, multiplication or division. Since you can only select queries as operands, first select your (one and only) query for both operands.

xxx

Then, switch to the Expert mode and change the value of one operand manually. As a first check, assign Operand2=10 to divide the value of Operand1 by 10.

xxx

xxx

 

Attention: Keep in mind that calculated data will not be displayed in the preview section!

xxx

No preview for queries with DP_CALCULATION

 

(Optional:) Check the chart

Now, let´s have a look at the display mode. Save and close the editor.

xxx

 

Compare the value of the basic data (blue line) with the data divided by 10 (red line). It works!

xxx

xxx

 

Having checked that, you are only a few steps away from the final chart.

 

Step 3: Fine-tune the gadget

Adapt the query with the Calculation Data Provider in Expert mode to your requirements and make sure that you keep the vertical bars that separate the key-value-pairs.

xxx

 

Select a time period and resolution…

xxx

 

and enter the correct description for the value unit that appears near the y-axis in the chart.

xxx

 

Step 4: Hide the first query

Finally, hide the query with the basic (uncalculated) data that is essential for the calculation but should not be shown in the chart.

xxx

 

That´s it.

xxx

 

Conclusion

With the Calculation Data Provider you have more options than SAP mentions (or even knows?). Just use your imagination 😉

I am looking forward to reading your comments on this blog post. Please let me participate in your ideas and use cases.

All screenshots were taken by me in SAP Solution Manager 7.2 SPS11 with ST-OST 200 SP06 Wave 9.0

Assigned tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.