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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Else command in dimension expression doesnt work

Hi All,

I am trying to use an expression for the table dimension format. After the second comma, it says that I am having an error in the expression. Does anyone have any idea why?

The expression follows:

=IF(SOMADOR_OP+SOMADOR_OS+SOMADOR_PEDIDO+SOMADOR_RISCO<=0,7*(COUNT(DISTINCT OP_OS)+COUNT(DISTINCT CONCATENADO_OP)+COUNT(DISTINCT CONCATENADO_PA)+COUNT(DISTINCT OP_RISCO))

  ,RGB(226,0,0),RGB(0,0,0))

I appreciate any help!

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be try this:

=If(SOMADOR_OP+SOMADOR_OS+SOMADOR_PEDIDO+SOMADOR_RISCO <= ((7/10) * (COUNT(DISTINCT OP_OS)+COUNT(DISTINCT CONCATENADO_OP)+COUNT(DISTINCT CONCATENADO_PA)+COUNT(DISTINCT OP_RISCO))), RGB(226,0,0), RGB(0,0,0))

Clever_Anjos
Support
Support

Daniel,

0,7 should be 0.7