formulas
In a message dated 98-10-25 17:38:48 EST, you write:
I’ve tried to add a column which checks the process date and only show
the commission amount if the process date month is the same as the current date month. It looks like:
=(If(=) Then Else (0)).
This gives me an #ERR. If I add the process date to the report as a column then the formula works.
Any object that is used in a calculation must be part of the block. That’s why you get an error if you don’t have it, and why the formula works when it is there. The trick is to have the object available but not displayed.
To do that, first add the date to the block so that your calculation works. Next, click on the date data. From the Format menu select Table (or Crosstab, if you are using that type of block). From the screen that comes up, select the Pivot tab on the top. There you will see a list of all of the variables currently used in the block.
Here the process gets slightly different depending on whether you are using 4.0.x or 4.1.x. If you are using 4.1.x, click on the date variable and click on the Hide button that you will see on the right side of the window. If you are using 4.0.x, then right-click on the variable to hide it.
Hiding the variable will ensure that it is still part of the block, but is not displayed. That should fix your problem.
Regards,
Dave Rathbun
Integra Solutions
www.islink.com
Listserv Archives (BOB member since 2002-06-25)