Skip to Content
Technical Articles
Author's profile photo Geetha Madhuri Bobbili

Part 2: How to Create Dynamic Images in SAP Analytics Cloud Story

Author: Geetha Madhuri Bobbili
LinkedIn Profile: https://www.linkedin.com/in/geetha-madhuri-bobbili-971268184/

This is the second blog post on Dynamic Images in SAP Analytics Cloud after the Introduction post. Refer to the Part 1 for uploading images in to SAP HANA.

The image dimension has been modeled in HANA 2.0 in Part 1 , now we can create a Live HANA Model in SAP Analytics Cloud and consume the images in a story.

Create Live HANA Model:

  1. Create a Live HANA Model by navigating to Modeler > Model > Get data from a datasource > Live Data connection.

  • Select Get data from a datasource.
  • Select Live data connection.
  • System Type: SAP HANA.

Once the Model is created, you can see the model as shown below.2. Create a Story and add image widget to the Page by selecting + -> Image.3. In the builder panel, you can choose between Static or Dynamic image. Select Dynamic image.

4. Add the model that contains the image content to the widget and select the image dimension.We can add a static alternative image. If an image is not returned from the database, or where more than one image is returned, in that case it will display the Static alternate image.Below is an example of an dynamic image and dynamic text driven by a page input control. The other sales data in the story charts was brought in via different Models (just for reference purpose) and combined via linked analysis.

Conclusion:

Now we have created Dynamic Images from a live HANA data connection in SAP Analytics Cloud.

Reference:

https://help.sap.com/

 

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Peter Warren
      Peter Warren

      Excellent thanks for writing this , just what I was looking for

      Author's profile photo Madhava Rao Moola
      Madhava Rao Moola

      Perfect and thanks for the detailed information .Very helpful,

      Author's profile photo Patricia Marques Gonzalez
      Patricia Marques Gonzalez

      Hi! Good Article!!

      I have a Story in which the user requires that each time they change the filter by company, the logo of the report is changed, and it shows that of the corresponding company.

      I could do it the way you comment on this article, by creating dynamic images?

       

       

      Author's profile photo Geetha Madhuri Bobbili
      Geetha Madhuri Bobbili
      Blog Post Author

      Yes Patricia. Please check Part 1 for more information.

      https://blogs.sap.com/2020/04/10/how-to-create-dynamic-images-in-sap-analytics-cloud-story/

      Regards,

      Geetha.

      Author's profile photo Shilpi Srivastava
      Shilpi Srivastava

      Hi Geetha

       

      We are actually using SAP IDT universe and object created with data type : BLOB is not supported there. Is there any solution where we can use SAP IDT universe for model and object based on type as Long Text as image dimension in SAC.

      Does Image dimension only support BLOB type.

      Thanks

      Shilpi

       

       

       

       

      Author's profile photo Maciej Galica
      Maciej Galica

      Dear Geetha,

      thank you for the great article. I wanted to ask, if it is possible to create dynamic image from SAP BW InfoObject XXL attribute? I have implemented an InfoObject with the XXL attribute of type BLOB, created a simple BEx query and connected it as Live Data model. However, when I try to create an dynamic image the image dimension is empty. Could you advice how to solve it?

      Thank you in advance

      Maciej

      Author's profile photo Fausto Scordato
      Fausto Scordato

      Dear Geetha,

      as per you knowledge is there a way to load a set of 7 images (e.g.: Monday.png, Tuesday.png, ...Frday.png) and use a dimension to select which image to display per day base ?

      So based on the date selector (just a page filter) the dashboard will display the corresponsing image to that specific day.

      Thanks in advance, kind regards

      F.