Is there a way to force a variable to act in a specific alternate state?
I want to define a variable and tell it which state to act in within the same object. For example, salary proposals. I'd like to be able to show the % increase of proposed salary over current salary. Salary is defined using a variable but differs depending on the state it's in.
I would expect it to function like this: ((vSalary in AltState2 / vSalary in AltState1) - 1), where state 2 is proposed and state 1 is current.
I have the individual values brought into the dashboard that way - two text objects in two alternate states.
However, the % increase I want to show is in a single text object. The text object itself has only one state. Thus, that state will dictate the values brought into the function and they will be the same number (x/x=1).
Numerator: Proposed Salary + Bonus (Bonus based on the Job Title selected, Proposed Salary is an Input), info needs to be pulled from AltState4
Denominator: Current Annual Salary + Bonus (Bonus is based on the person selected), info needs to be pulled from AltState1
The whole idea is to select an associate in AltState1 and a proposed title they will be moving to in AltState4 - I want to show the % increase when bonus is taken into consideration.
If the text object is in AltState4, the proposed Job Title select in AltState4 is dictating the bonus/annual salary for the numerator and denominator. If in AltState1, then the annual salary is correct but the bonus is dictated by the associate selected in AltState1. If I could move the numerator into a variable and a denominator into another, and tell them which AltState to reference in the quotient, that would solve my problem.