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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Font color in expression

Hi

This code works fine (it just make a format so numbers under one percent show a decimal, else show a interger) - but I want the code to change the font color as well - how do I do that?

=

if ((

SUM({1<Year={$(v_year)}>} DKK))/ (SUM({1<Year={$(v_year)}>} TOTAL DKK))<0.01, NUM((SUM({1<Year={$(v_year)}>} DKK))/ (SUM({1<Year={$(v_year)}>} TOTAL DKK)), '#.##0,0%') ) &

if ((

SUM({1<Year={$(v_year)}>} DKK))/ (SUM({1<Year={$(v_year)}>} TOTAL DKK))>=0.01, NUM((SUM({1<Year={$(v_year)}>} DKK))/ (SUM({1<Year={$(v_year)}>} TOTAL DKK)), '#.##0%') )

Can I add a font style?

Thanks in advance 🙂

(By the way my code is used in the Ideovision Map extension, but I think its a common issue for all expressions)

15 Replies
Not applicable
Author

Thanks - then I dont think there is a solution. The only color option I have is the background color and that works fine - I cant find a place to change label color. I think I make a textbox and order it to the front of the map instead. Thank you very much for your time 🙂

avinashelite

Since it's an extension we need to add the logic code in the extension to change the Label color ..if it was a QV default object it would come by default . Get in touch with your extension developer and ask to add this part also

Anil_Babu_Samineni

I am new to extension oriented

Try this?

<Label Id = "LabelID"> Welcome </Label>

<Style>

#LabelID

     {

          Color : Red;

          Font-Weight : Bold;

     }

</Stlye>

Or else simple do this with in the tag if you feel bad in Styles

<Label Style = "Color : Red; Font-Weight : Bold"> Welcome </Label>

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
avinashelite

He want the labels to change as per the expression the above gives the constant color for him rite ?

adamdavi3s
Master
Master

It would be easy enough to add this into the script for the extension, but guessing that is down to the developer...

Is this a paid extension I assume?

Not applicable
Author

Yes its a paided extension: Ideovio which is a very nice map for QV. I'll ask them and be back with the feedback here 🙂