0

NL("Rows") Command In An IF Statement

Is it possible to have a ROWS command inside an IF statement? I'd like to give the users the option of choosing between two versions of the report using report options and then using different field filters in my ROWS command based on the option.

For example, in the report options, the user would select between Report Style A and Report Style B. I was hoping to have a ROWS statement set like this:

=IF(Options!C2="A",NL("Rows","Item",,FilterFieldA1,FilterA1,FilterFieldA2,FilterA2,etc),NL("Rows","Item",,FilterFieldB1,FilterB1,FilterFieldb2,FilterB2,etc))

The problem is that when I put the ROWS command inside the IF statement, I only get the first line of the results…the rows don't get replicated.

Any ideas? Thanks very much.

4 comments

Please sign in to leave a comment.