Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Prithika
Contributor III
Contributor III

textbox

can someone help me

In qlik sense
if I selected a value in a field in filter pane, Text box should show the selected value and it should also show the value that is related to the selected value.
 
for example:
 
student name: Harikrishna
 
student attendance status: present
 
student punch time: 8:00
 
if I selected Harikrishna, on textbox it should show the name Harikrishna and it should show attendance status and  punch time without selection. is there any possible expression?
Labels (2)
2 Solutions

Accepted Solutions
justISO
Specialist
Specialist

Hi, add 'Text & image' chart to your report and write text you need with additional measures, something like this:

justISO_0-1691142388977.png

where measures checking if only one student is selected and showing corresponding values and looks like this:

if(GetSelectedCount(student)<>1, 'select 1 student', student)

if(GetSelectedCount(student)<>1, '-', attendance)

if(GetSelectedCount(student)<>1, '-', time)

View solution in original post

Prithika
Contributor III
Contributor III
Author

i got it thank you so much.

if(GetSelectionCount([student name]<>1),'select a student name',[student name])

if(GetSelectedCount([student name]<>1), '-', attendance)

if(GetSelectedCount([student name])<>1), '-', time)

i have been stuck in this for 2-3 days

thank you so much.

View solution in original post

4 Replies
justISO
Specialist
Specialist

Hi, add 'Text & image' chart to your report and write text you need with additional measures, something like this:

justISO_0-1691142388977.png

where measures checking if only one student is selected and showing corresponding values and looks like this:

if(GetSelectedCount(student)<>1, 'select 1 student', student)

if(GetSelectedCount(student)<>1, '-', attendance)

if(GetSelectedCount(student)<>1, '-', time)

Prithika
Contributor III
Contributor III
Author

e8f63151-4d59-4c47-9883-8839c4d32dcf.pngCapture.PNG

it is showing error what should i do pls help me

 

justISO
Specialist
Specialist

GetSelecetedCount() is a function, you forgot to put brackets (as error indicate):

if(GetSelecetedCount([Student Name])<>1, 'select 1 student', [Student Name])

Prithika
Contributor III
Contributor III
Author

i got it thank you so much.

if(GetSelectionCount([student name]<>1),'select a student name',[student name])

if(GetSelectedCount([student name]<>1), '-', attendance)

if(GetSelectedCount([student name])<>1), '-', time)

i have been stuck in this for 2-3 days

thank you so much.