summation from the values of images | XM Community
Skip to main content
Solved

summation from the values of images

  • July 12, 2025
  • 3 replies
  • 33 views

Forum|alt.badge.img+2

I have screenshots of product items with prices, displayed as an image form. I want to add the prices of all the products selected by the participants. Suppose they choose 5 out of 10 items (as shown in the images); the next page should display the summation of all the selected items. Is it possible to execute this?

Best answer by Chee Heng_SZ

If the summation is on a separate block, you can set branch logic in the survey flow after your question block to check if each individual item was selected. If they are selected, an embedded data to be set with the product price. Then, at the end of the 10 branches, create an embedded data that sums up the embedded data of the individual items through Math operations.

 

To illustrate:

>Branch 1- if item 1 is selected

>>Item1Price=1

>Branch 2 - if item 2 is selected

>>Item2Price=2

>Branch 10 - if item 10 is selected

>>Item10Price=10

TotalPrice= Item1Price+Item2Price+...+Item10Price.

3 replies

Forum|alt.badge.img+21
  • 313 replies
  • Answer
  • July 14, 2025

If the summation is on a separate block, you can set branch logic in the survey flow after your question block to check if each individual item was selected. If they are selected, an embedded data to be set with the product price. Then, at the end of the 10 branches, create an embedded data that sums up the embedded data of the individual items through Math operations.

 

To illustrate:

>Branch 1- if item 1 is selected

>>Item1Price=1

>Branch 2 - if item 2 is selected

>>Item2Price=2

>Branch 10 - if item 10 is selected

>>Item10Price=10

TotalPrice= Item1Price+Item2Price+...+Item10Price.


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 15 replies
  • July 14, 2025

thanks ​@Chee Heng_SZ 


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • 2050 replies
  • July 15, 2025

You could also just recode the responses to the price values, then sum them up using math operations.