Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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