Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bom Dia.
Tenho um texto que me retorna duas informações para o usuário (FERIAS E DEMITIDOS).
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
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
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
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
Bom Dia.!
É o texto do titulo do gráfico.
Uma única expressão.
grato
Renato
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
Dependendo do tipo de gráfico, você pode usar "Texto no Gráfico", em propriedades do objeto/aba apresentação.
Abs,
Felipe
OK. Pessoal.
Muito Obrigado pelas dicas..!!
Renato