Numbers displayed in Results Slide as Percentage

Nov 08, 2021

Hi all!

I'm working on a module that is a branching scenario. The objective for this scenario is that the learner clicks each option that appears on each slide, and when they do, depending on their choice, adds a certain number of points to their total points (as a variable). So far, I'm doing good with calculating the number variables in the module. But now, I need to change and display the total number variable into a percentage on each slide, not just the end result slide. Does anyone know how to do that? I hope this makes sense. :/ 

Thanks!

2 Replies
Maria Costa-Stienstra

Hi, Zak.

Thank you for reaching out!

From what I understand, you have a custom points variable that changes throughout the course as the user gains\loses points, and now you'd also like to show a percentage.

If that's correct, you can create another numeric variable, which we'll call Percentage. On each slide, add a trigger to set the percentage variable to the points variable and then another trigger to multiply it by a number when the timeline starts. That number will depend on how many questions\slides you have. For example, if you have four, you'd multiply it by 25 (so the total is 100). If you have ten slides, you'd multiply it by 10, etc.

Windows 10 (1) 2021-11-08 at 4.53.54 PM

In the example below, clicking the rectangle adds 1 point to the score:

Screen Recording 2021-11-08 at 04.43.28 PM

I hope this helps!