Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Nikhil2725
Creator II
Creator II

Prefix text

Hi Team,

I have table below:

Sl numIs_correct_answerQuestion_textAnswer_text
10what is the national sport of IndiaCricket
20what is the national sport of EnglandHockey
31what is the national sport of BrazilFootball
41what is the national sport of South AfricaRugby
51what is the national sport of ChinaTable Tennis

 

If the Is_correct_answer=0 then, I should append Incorrect before displaying the Answer_text

Is_correct_answer=1 then, I should append Correct before displaying the Answer_text

However, I want to display as below:

Sl NumQuestion_textUpdated Answer_text
1what is the national sport of IndiaIncorrect: Cricket
2what is the national sport of EnglandIncorrect: Hockey
3what is the national sport of BrazilCorrect:Football
4what is the national sport of South AfricaCorrect:Rugby
5what is the national sport of ChinaCorrect:Table Tennis

 Kindly help me in displaying as above.

12 Replies
Nikhil2725
Creator II
Creator II
Author

Hi Sunny,

I have attached the image where I am getting wrong Prefix value.

For the A4 that should be incorrect as per the DB, however if I apply the same formula its not working.

sunny_talwar

Can you add E_is_correct_answer as one of the dimension to show that the value is actually 0?

Forrounce
Contributor II
Contributor II

thank you, you helped me a lot!