Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Year to date in List box

Hi

I have year to date filed in list box with two values -1 and 0 where upon selction of -1 gives me YTD data. I want to display only YTD(-1)  value in list box and want  to hide the value '0'. Please find attached screenshot

look like something wrong with my script

=if(D_Date.Flag_Curr_YTD='-1', 'YTD', D_Date.Flag_Curr_YTD)  

1 Solution

Accepted Solutions
mphekin12
Specialist
Specialist

I'm sorry I forgot the () for the Null function.  Try this:

=if(D_Date.Flag_Curr_YTD='-1', 'YTD', Null())

View solution in original post

3 Replies
mphekin12
Specialist
Specialist

Try this for your expression:

=if(D_Date.Flag_Curr_YTD='-1', 'YTD', Null())

Not applicable
Author

Hi mphekin12,

Its not working out. Should i specifiy null in a statement ?

mphekin12
Specialist
Specialist

I'm sorry I forgot the () for the Null function.  Try this:

=if(D_Date.Flag_Curr_YTD='-1', 'YTD', Null())