https://community.qualtrics.com/discussion/comment/38461#Comment_38461Yes, I saw this manual, but I'm not sure how to use these instructions for my situation.Maybe it would be better if I will be more specific regarding my need.I have two numeric values (embedded data) in my data file, and I need to assign one of two specific values randomly to a new embedded data variable if the values of the source embedded variables are equal. After that, I will continue to work with respondents based on this new embedded data variable value.Note: In this case, you can see that I tried to use a semicolon instead of a colon standardly used in the original command (found in Piped text -> Random number) – ${rand://int/1:3}.
ahmedA of course, I read (e.g. https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/randomizer/#EditingCounts ; https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/piped-text-overview/#RandomNumberGenerator) and also tried to find if someone else has asked this sort of question. Unfortunately, I don't think that I found an answer (I'm sorry if I missed something).I also tried to use a comma in the command ${rand://int/1,3}, but this solution is not working.
Eumetis ahmedA Thank you very much for your advice, it helped me a lot.
https://www.qualtrics.com/community/discussion/comment/38331#Comment_38331lizb311 Thank you very much for your explanation; it works exactly you described.Thank you for all your great and valuable advice. It helped me a lot.
lizb311 Thank you very much for your help and effort.I replicated your process and it works. The strange thing is that there were no spaces when I copied my calculation from the embedded data editor to the survey builder (and checked in HTML). Regardless of this, I copied the calculation back and tried to create your "Embedded data check" and it works correctly.The only thing I'm still wondering is that when I test this calculation via "preview" of my survey then I can found the numeric value of my embedded data variable in the data file but when I try to fill the survey via "Anonymous Survey Link" (in section Distribution), then my embedded data variable is empty. It leads me to question if I can be sure that it will work correctly during real data collection. Do you think, what can be the reason for this "double behaviour" of the survey? Could be the reason the fact that my survey is still a "draft" and therefore do not work perfectly when I'm using the second type of preview
https://www.qualtrics.com/community/discussion/comment/38291#Comment_38291lizb311 Thank you for your answer. To answer your questions, I'm using single-choice questions (3 in 1 matrix table) with a forced response. This battery is displayed if the respondent previously marks XY as important in another question.My goal is to create the index ((numeric value of the answer of question 1 + numeric value of the answer of question 2 + numeric value of the answer of question 3) / 3). All answers have set numeric value: I tried to use your suggested piped text based on the "selected choice" expression, but my embedded variable still does not work.I will be grateful for any further advice.If something is still unclear, I will do my best to clarify.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.