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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
timurt
Contributor II
Contributor II

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)
3 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 II
Specialist II

@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!
timurt
Contributor II
Contributor II
Author

Hello @MatheusC, thank you for your help.

I also tried this code, however it does not work as expected. I want each 'FieldX:' & EXPRESSION/FIELD to occur in a new separate line, such that in the tooltip it will look like this:

Field1: Num1

Field2: Num2

Field3: Num3

Field4: Num4

Now it still looks like this:

Field1: Num1 Field2: Num2 Field3: Num3 Field4: Num4