Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
timurt
Contributor
Contributor

How to make a line break in a tooltip?

Hello!

I'm trying to make a line break inside of a tooltip, however no way is working. Here are the different combinations that I have tried that do not work:

'Field1: ' & Count([Field1]) & chr(10) & chr(13) &
'<br> Field2: ' & Count({<[Field2]={'TRUE'}>} [Field2]) & chr(10) & chr(13) &
'<br> Field3: ' & Count({<[Field3]={'FALSE'}>} [Field3]) & chr(10) & chr(13) &
'<br> Field4: ' & Field4

'Field1: ' & Count([Field1]) & chr(10) &
'Field2: ' & Count({<[Field2]={'TRUE'}>} [Field2]) & chr(10) &
'Field3: ' & Count({<[Field3]={'FALSE'}>} [Field3]) & chr(10) &
'Field4: ' & Field4

'Field1: ' & Count([Field1]) & chr(10) & chr(13) &
'Field2: ' & Count({<[Field2]={'TRUE'}>} [Field2]) & chr(10) & chr(13) &
'Field3: ' & Count({<[Field3]={'FALSE'}>} [Field3]) & chr(10) & chr(13) &
'Field4: ' & Field4

I also tried other combinations I found on the forum. However, ToolTip still does not move the value text to a new line. Can you please help me to understand this?

Labels (5)
2 Replies
Venus
Contributor II
Contributor II

Try:

Dual(Count([Field1])& Chr(10) &  Count({<[Field2]={'TRUE'}>} [Field2])& Chr(10) & Count({<[Field3]={'FALSE'}>} [Field3]), Count([Field1]))

MatheusC
Specialist
Specialist

@timurt 
When adjusting the spaces between the quotes ‘’, this code works well:

'Field1:' & Count([Field1]) & chr(10) & chr(13) &
'Field2:' & Count({<[Field2]={'TRUE'}>} [Field2]) & chr(10) & chr(13) &
'Field3:' & Count({<[Field3]={'FALSE'}>} [Field3]) & chr(10) & chr(13) &
'Field4:' & Field4

- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!