Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
March 26 at 10am ET: See how Qlik drives growth and value in ISV segment - REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
alemberg
Contributor III
Contributor III

QS Table Blank out cell if another equals to 0 (Expression needed)

I am trying to figure out the expression for the following (Reference table screenshot and current Expressions below). If "Curr DY" or "CutoffDY" show up as "-" in the cell, then I want to overwrite what ever shows up in "Chg in DY" to show up as "-" as well in that row. Much thanks in advance for any assistance you may provide.

Current Expressions for each

Curr DY =            If(Avg(debtyieldcurrent)=0,'-',Avg(debtyieldcurrent))

Cutoff DY=         If(Avg(debtyieldcutoff)=0,'-',Avg(debtyieldcutoff))

Chg in DY=        (Avg(debtyieldcurrent)-Avg(debtyieldcutoff))*10000

QLM.PNG

 

1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

Chg in DY= If(Avg(debtyieldcurrent)=0 or Avg(debtyieldcutoff)=0,'-', (Avg(debtyieldcurrent)-Avg(debtyieldcutoff))*10000)
Learning never stops.

View solution in original post

2 Replies
Channa
Specialist III
Specialist III

in  3rd variable dont use direct measures write IF condition

Channa
pradosh_thakur
Master II
Master II

Chg in DY= If(Avg(debtyieldcurrent)=0 or Avg(debtyieldcutoff)=0,'-', (Avg(debtyieldcurrent)-Avg(debtyieldcutoff))*10000)
Learning never stops.