Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
NeonThunder
Contributor II
Contributor II

Qlik Base64 or HTML tags inside a label

I was wondering how I can embed a base64 image inside a normal label or even html tags.  I have a pivot table with customer names on the left and total purchases on the right as a measure.

I want to show an icon or image next to the customer's name if they have spent over a threshold.  How would I do this please?

So my logic is...

=CustomerName & If(TotalSpend > CustomValue, ' (High Spender)', '')

But I want something like

 

=CustomerName & If(TotalSpend > CustomValue, ' <b>(High Spender)</b>', '')

or

=CustomerName & If(TotalSpend > CustomValue, '

<img src="data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAA4UlEQVRIieXVPU7DQBCG4QdCDVcI1HAbLkJFSei4Bz85BwW3CRIpQcBSZCysaO1MHKdAvNJI1uznb2Z2bS3/kRKR4jCpm+IM81ZuHrkpDrIFa1ziA0u/3TfxhvfQVMlMcI4JjvGNh4iCExzhYnD7wSIM71u5psii78XsGeyVGb6sum226DGeCz5DM5i+Q17GWuchZ2l/po35E05jbVS2+tHGZoa7bcTre74eXfqNRTLmpUd/M4Z56dDvZL5JP1rnteg1h+t9mg+d4hVXWfPaJOnOuphUci9WN9Qzbnct8Pf5AfKnkDv3g9LQAAAAAElFTkSuQmCC">
 

', '')

 

Labels (3)
2 Replies
vikasmahajan

hi,

you can take reference here https://www.w3schools.com/html/

very simple demos are available in this site for HTML coding.

 

Thanks

Vikas

 

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
NeonThunder
Contributor II
Contributor II
Author

I am very proficient in HTML.  I just need to know if I can use HTML tags inside a label.   Some Vizlib allows html in labels but seems only the measures.  I was wondering if there is a way in the label itself to encode the html so it will output as html and not as text.