Using a Hide Row IF statement

All your off topic posts, Chill out, kick back, and relax. This is your place to come and express yourself.

Using a Hide Row IF statement

Postby DMDG on Mon Feb 01, 2010 6:09 pm

I have a report which uses both NL(Column) and NL(Row) functions to generate a report. The NL(Column) function which returns all months within a specified data range filter, and the NL(Row) function which returns a sum for all accounts within a specified range of accounts. Question: Is there a way to have this jet reports hide a row in which all cells in all columns return a zero value for the sum?

Example:

Acc. #: July/ August/ September/ ect...
Acc# 1: 0.00/ 30.00/ 125.00/
Acc# 2: 5.00/ 15.00/ 130.00/
Acc# 3: 0.00/ 0.00/ 0.00/ <------I would like this row would be forced to hide
Acc# 4: 3.00/ 10.00/ 177.00/
Acc# 5: 2.00/ 17.00/ 130.00/


Thanks for the help and any ideas!
DMDG
 
Posts: 21
Joined: Mon Nov 09, 2009 1:24 pm

Re: Using a Hide Row IF statement

Postby Sebastiaan Lubbers on Wed Feb 03, 2010 1:54 am

=IF(AND(D4=0,E4=0,F4=0),"Hide","Show")
Code: Select all
JetReports: 9.1.9352.0
Dynamics:   6.0.29626.0 NATIVE/SQL
Excel:      12.0.6514.5000
Windows 7 Enterprise - Dutch Regional

JetReports Certified Professional
Business Developer @ Herke ICT Group (http://www.herke.nl/)
User avatar
Sebastiaan Lubbers
 
Posts: 140
Joined: Tue Jun 02, 2009 12:46 am
Location: Den Helder, The Netherlands

Re: Using a Hide Row IF statement

Postby DMDG on Wed Feb 03, 2010 2:37 am

Thanks for the response, Sebastiaan. But maybe I was unclear in my request. See, in using a Columns function I am never sure how many columns will be returned based on the variable date range that the user might choose. And also given the fact that I will be placing a totals column after all months I am unable to assume that I know which columns to target for my dependent statement. To add to the complexity I will be returning budgeted columns after the actuals which may not come to zero either.

Before I was using a statement in A4 similar to:

=If(sum(D4:E4)=0,"Hide","") where column E was an empty column. But when running the report this function is replaced by the text "Auto" and the hide command was never able to take affect. Because of this I wonder if it is possible to use any IF statement in column A to automate this hide row function I'm looking for.

Any thoughts? Thanks again for the help.
DMDG
 
Posts: 21
Joined: Mon Nov 09, 2009 1:24 pm

Re: Using a Hide Row IF statement

Postby bArT on Wed Feb 03, 2010 7:52 am

DMDG wrote:
Before I was using a statement in A4 similar to:

=If(sum(D4:E4)=0,"Hide","") where column E was an empty column. But when running the report this function is replaced by the text "Auto" and the hide command was never able to take affect. Because of this I wonder if it is possible to use any IF statement in column A to automate this hide row function I'm looking for.

Any thoughts? Thanks again for the help.


be sure that you put Hide+? in B1 and Excel IF() in column B - should work :)

take a look on "Conditionally Hiding Rows" topic in Jet Help.

B.
best regards
bartek doruch
Jet PL
bArT
 
Posts: 8
Joined: Thu Apr 03, 2008 8:04 am

Re: Using a Hide Row IF statement

Postby DMDG on Wed Feb 03, 2010 3:58 pm

You guys are awesome! Great solution. Thank you, and thank you for the reference to the Help resource. I'll be sure to look there in future.
DMDG
 
Posts: 21
Joined: Mon Nov 09, 2009 1:24 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron