Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
girino777
Creator III
Creator III

Formatar cor do texto

Bom Dia.

Tenho um texto que me retorna duas informações para o usuário (FERIAS E DEMITIDOS).

imagem.bmp

Tenho o seguinte código abaixo:

='FÉRIAS: ' & NUM(COUNT({$<TIPO_FUNC={'FERIAS'}>} DISTINCT CHAPA & ANOCOMP & IF(MESCOMP='1','-01',

IF(MESCOMP='2','-02',

IF(MESCOMP='3','-03',

IF(MESCOMP='4','-04',

IF(MESCOMP='5','-05',

IF(MESCOMP='6','-06',

IF(MESCOMP='7','-07',

IF(MESCOMP='8','-08',

IF(MESCOMP='9','-09',

IF(MESCOMP='10','-10',

IF(MESCOMP='11','-11',

IF(MESCOMP='12','-12'))))))))

))))),'#.##0')

& '     ' &

'DEMITIDOS: ' & NUM(COUNT({$<TIPO_FUNC={'DEMITIDO'}>} DISTINCT CHAPA & ANOCOMP & IF(MESCOMP='1','-01',

IF(MESCOMP='2','-02',

IF(MESCOMP='3','-03',

IF(MESCOMP='4','-04',

IF(MESCOMP='5','-05',

IF(MESCOMP='6','-06',

IF(MESCOMP='7','-07',

IF(MESCOMP='8','-08',

IF(MESCOMP='9','-09',

IF(MESCOMP='10','-10',

IF(MESCOMP='11','-11',

IF(MESCOMP='12','-12')))))))))

)))),'#.##0')

Gostaria que quando fosse FÉRIAS a cor fosse verde e quando fosse DEMITIDOS  cor fosse vermelha.

É Possível no exemplo acima.

Muito Obrigado

Renato

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Unfortunately you cannot give to a text title two different colours simultaneously, If you need this, use two text boxes (you must change the expression doing an Aggr by dimension) one for Red, the other for Green.

Hope it helps

View solution in original post

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Where is this text?

is it an expression or a text box ??

Let me know.

However you cannot colour the same string with 2 different colours so use 2 different objects, one for Ferias and one for Demitidos

felipe_dutra
Partner - Creator
Partner - Creator

Renato,

Você precisa criar dois objetos de texto, e definir a cor do texto para cada um deles.

e pode diminuir seu código usando:

...ANOCOMP & '-' &Num(MESCOMP, '00') ...


Abs,

Felipe

girino777
Creator III
Creator III
Author

Bom Dia.!

É o texto do titulo do gráfico.

Uma única expressão.

grato

Renato

alexandros17
Partner - Champion III
Partner - Champion III

Unfortunately you cannot give to a text title two different colours simultaneously, If you need this, use two text boxes (you must change the expression doing an Aggr by dimension) one for Red, the other for Green.

Hope it helps

felipe_dutra
Partner - Creator
Partner - Creator

Dependendo do tipo de gráfico, você pode usar "Texto no Gráfico", em propriedades do objeto/aba apresentação.

Abs,

Felipe

girino777
Creator III
Creator III
Author

OK. Pessoal.

Muito Obrigado pelas dicas..!! 

Renato