Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
This formula doesn't work. I have created it within a Master Measure
What this formula does:
- Find the email addresses that have submitted one and only one answer (aggregate your_answer by email address)
- if this unique answer is = 28 or #javascript or #javas --> Assign Pass
- Otherwise assign Fail
ISSUE: it assigns Pass only if the answer is 1 equal to 28.
if the your_answer grouped by email address is 1 and equal to #javascript or #javas it assignes FAIL
if(
(
(
aggr(count(your_answer), [Email Address])=1
)
AND if(
[your_answer]=28 OR [your_answer]='#javascript' OR [your_answer]='#java',[your_answer]
)
),'Pass', 'Fail'
)
Guess that it's a syntax problem
If I take my formula and instead of #java and #javascipt I put 29 and 30
it works perfectly
but I need to formula to scan the fields and identify if they contain strings (#java and #javascript)
So I guess that it's a syntax problem related to "Scanning a field and identifying if there is a specific string within it"
the syntax '#javascript' doesn t work. The syntax '$(#javascript)' doesn t work either.
again, if I want to "Scan a field and identify if there is a specific number within it", it works.
Suggestions?
Any Idea?
Thank you in advance
PS. Please note that I am not in the script but in the Master Items Creation
Paolo, please do not cross post same question: AND / IF / OR in master measures ISSUE
Hi,
Apologies for the double post, how can I post a question in more than 1
group?
Now I have just access to a very few groups and the answers I get are
always too complex for me
I am a beginner, I can't afford a course for the moment, I have programming
skills but I find things in Qlik quite difficult sometimes
Furthermore, why I cannot reply to the post anymore?
No reply button, no action available
Best
check if you are logged in.
regards
Marco
>>If I take my formula and instead of #java and #javascipt I put 29 and 30
it works perfectly
If it does, are you sure you are getting the answer you expect. The syntax looks dodgy to me.
>>Scanning a field and identifying if there is a specific string within it
Check the manual or on line help for
One of those should be suitable for your needs
Hi Jonathan,
Thanks for your tips. Basically what I would like to do is giving the title of "Top Developer" to the emaill addresses that answered only once to the question and answered either 28, or #javascript or #java
This should be a master measure
Is it possible to do it?
I have created a master measure named "Top Developer" and I inserted this formula
count(
if(
(match(your_answer, 28, '#javascript','#java')) AND (your_answer), [Email Address]=1
)
)
but it doesn't give me the result I expect in terms of number
Would you be able to give me a hint?
I am now reading the Qlik University stuff to learn more
Many Thanks
P