Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Filippo_Naggi
Participant
2,715

Hello,
I’m Filippo Naggi, an Enterprise Architect with a deep passion for enterprise technologies, specifically SAP SAC, SAP BPC, Onestream, and BigQuery. Today, I am excited to take you through a detailed guide on how to build a variable-driven measure for currency conversion within SAP Analytics Cloud (SAC). This technique will enable you to select the desired destination currency dynamically and apply it seamlessly across various reports and analyses within your model.

Currency conversion is a critical aspect of financial modeling, especially when dealing with multi-currency datasets. Having the flexibility to switch between different currencies while maintaining consistency across measures is vital for making informed business decisions. In this blog, we will cover step-by-step how to create such a solution using a variable-driven approach in SAC.

Step 1: Model Setup

First, we’ll begin by setting up the model. Our model includes two dimensions, and we start with a source measure in USD (U.S. dollars), which will be our default currency for this exercise. As shown in Fig 1.x, this setup is foundational to ensure that our measures are properly aligned with the currency variable we will be adding later.

Fig. 1.1 The Multidimensional Model

Filippo_Naggi_4-1727978132467.png

Fig. 1.2 The Source measure in USD - Measure name: Translated

Filippo_Naggi_5-1727978196891.png

 

Step 2: Activating Currency Conversion

Next, we activate the built-in feature for currency conversion within SAC. SAC provides a robust framework to handle currency conversions dynamically, and by activating this feature, we can streamline the process. In Fig 2, you’ll see how the currency conversion option is enabled within the model, making it ready to support multiple currencies.

Fig.2 Currency Conversion Model Setup

Filippo_Naggi_6-1727978267745.png

 

 

Step 3: Building a Variable for Currency Conversion

The core of our approach lies in creating a variable that drives the currency conversion. This variable allows users to select the desired target currency, which can be applied universally throughout the system. In Fig 3, I will walk you through how to build and configure this variable step-by-step.

Fig.3 Currency Variable Settings

Filippo_Naggi_7-1727978301469.png

Step 4: Currency Rate Table

Of course, the actual conversion rates must be managed, and SAC simplifies this process through the use of a currency rate table. This table stores all the exchange rates that will be used in the conversion calculations. Fig 4 shows an example of how this table is configured and how the system pulls the relevant rates for each currency conversion.

Fig 4. Rates setup

Filippo_Naggi_12-1727978651920.png

 

 

Step 5: Applying the Variable in a Story

Once the variable is ready, it’s time to integrate it into a story. In this example, we’ll build a table in the story that leverages the currency conversion variable. SAC will automatically prompt users to select the currency at runtime. As shown in Fig 5, the system can even provide a default currency, which can be changed based on the user’s preferences.

Fig.5 Variable Story Input

Filippo_Naggi_8-1727978369938.png

 

 

 

 

Step 6: Runtime Selection of Different Currencies

The beauty of this solution is the flexibility it offers at runtime. Users can easily select different currencies based on the available options in the variable. As demonstrated in Fig 6.x, users can toggle between different currency selections, and the entire dataset will automatically adjust to reflect the newly selected currency.

Fig 6.1 USD Toggle

Filippo_Naggi_9-1727978483562.png

Fig 6.2 EUR Toggle

 

Filippo_Naggi_11-1727978616798.png

 

 

Step 7: Using the Feature in the Excel Plug-In

Lastly, it’s worth noting that this functionality isn’t limited to just the web interface of SAC. The variable-driven currency conversion can also be utilized through the SAC Excel plug-in. This allows users to work with currency conversions directly within their Excel environment, providing additional flexibility for analysis and reporting. Fig 7.x shows an example of how the feature operates within the plug-in.

Fig 7.1 Variable Selector - USD

Filippo_Naggi_0-1727977741279.png

Fig 7.2 Rate: USD

Filippo_Naggi_1-1727977883248.png

Fig 7.3 Variable Selector - EUR

Filippo_Naggi_2-1727977933764.png

Fig 7.4 Rate: EUR

Filippo_Naggi_13-1727978761615.png

 

 

Conclusion

In conclusion, variable-driven currency measures are a powerful feature within SAP Analytics Cloud, providing unmatched flexibility and control over financial reporting and analysis in multi-currency environments. This functionality highlights the multidimensional capabilities of SAC, making it an ideal tool for enterprise-scale financial planning and analysis.

If you have any questions or require further assistance in implementing this feature, feel free to reach out to me directly. I’d be happy to assist you in exploring the full potential of variable-driven currency conversion in your SAC environment.

Thank you for following along and Stefano for kicking off the interest in deep diving into this.

I hope you all found this guide helpful!

Best regards,
Filippo Naggi

1 Comment