Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help in expression

Hello Friends,

As I need to dispaly the text in a text box based on selection, the text color shoud change.

I tried =If(vFiscal<>1,Blue('Current View is Calendar Months'),Red('Current View is Fiscal Period')), but its showing the color code.

Regards

Chriss

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You'll have to set the color for the text on the Font tab. Click on Color and check the option Calculated and enter the expression =if(vFiscal<>1, blue(), red()).  Your expression for the text would be =If(vFiscal<>1,'Current View is Calendar Months','Current View is Fiscal Period')


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

You'll have to set the color for the text on the Font tab. Click on Color and check the option Calculated and enter the expression =if(vFiscal<>1, blue(), red()).  Your expression for the text would be =If(vFiscal<>1,'Current View is Calendar Months','Current View is Fiscal Period')


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

Thanks a lot, you genious helped me lot.

great work.

Regards

Chriss