Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude 0 and -1 from a chart

Hello everyone,

I have a graph with several expressions made with sets analysis. Their aims is to display a percent of type of lines compare to the rest of the other lines.

My problem is that I obtain values "-1" and "0" in my dimension. These values doesn't exists at origin in my table.

forum.png

Do you know how I can hide these -1 and 0 ?

Thank you !

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

if your expression is something like MYEXPR then

write:

if(MYEXPR  <= 0, null(), MYEXPR )

let me know

View solution in original post

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

if your expression is something like MYEXPR then

write:

if(MYEXPR  <= 0, null(), MYEXPR )

let me know

sasikanth
Master
Master

if(dimension_name<>'-1' and dimensionn_name<>'0' , dimension_name,0)

SunilChauhan
Champion
Champion

if(column(1)< 0, null(), column(1))  


here column(1)----> denotes first expression you can use column(N)-->n=1,2,3.......


and  go to chart -> properties-> presentation-> supress zero value


hope this helps


Sunil Chauhan
Not applicable
Author

Can you please share your qvw to better explain what you want to achieve?

SunilChauhan
Champion
Champion

you can also  do below

go to excess and in static min write 1

hope this helps

Sunil Chauhan
Not applicable
Author

Thanks for your responses !