Page 1 of 2 1 2 >
Topic Options
#35836 - 03/04/13 06:23 AM GV Filter
Miriam Offline
Adagio Maven

Registered: 05/10/12
Posts: 162
Loc: Altona, MB
(206.45.238.165)
I am using this filter in a GV report:

and({Trx Type} = 1,{Job}<>100,or(and({Trx Date} >= {Start Date},{Trx Date} <= {As of Date}),and({Trx Date} >= {LY Start Date},{Trx Date} <= {LY As of Date})))

The filter evaluates okay but the problem is the {Job}<>100. It doesn't do anything to the View even though it's supposed to omit Job # 100.
_________________________
Miriam Wiebil
ChoiceTech Accounting Solutions

Top
#35837 - 03/04/13 06:29 AM Re: GV Filter [Re: Miriam]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4543
Loc: Wynnewood, PA
(96.245.81.238)
Instead of {Job}<>100 use trim({Job})<>"100"

The Job number is actually a text field and needs to have quotes around it.

Steve

Top
#35841 - 03/04/13 07:00 AM Re: GV Filter [Re: Steve Schwartz]
Miriam Offline
Adagio Maven

Registered: 05/10/12
Posts: 162
Loc: Altona, MB
(206.45.238.165)
This worked. Thanks.

My second question is: I am using this formula to calculate the variance between two columns (column E - column F).

=IF(OR(E10=0,F10=0),100,E10/F10)

I want my variance to show as a percentage and if I use this formula it works fine if column F is zero because then it shows 100, but if column E is zero I get an error even though it's supposed to show -100.
_________________________
Miriam Wiebil
ChoiceTech Accounting Solutions

Top
#35842 - 03/04/13 08:07 AM Re: GV Filter [Re: Miriam]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(184.70.7.174)
Hi Miriam,

Is this in the Financial Reporter or GridView?

In either case, you must test to see whether F10 = 0, since division by zero is undefined.
_________________________
Andrew Bates

Top
#35843 - 03/04/13 08:29 AM Re: GV Filter [Re: Retired_Guy]
Miriam Offline
Adagio Maven

Registered: 05/10/12
Posts: 162
Loc: Altona, MB
(206.45.238.165)
This is a GV report linked to Excel. With an XDView link it automatically updates Excel with the formula stored in Excel.

When I divide column E by column F I want the variance to show as a percentage. In the case where column F is 0 the formula works, but if E is 0 then I have an error and if both columns are 0 then it shows 100% where as it should show 0.
_________________________
Miriam Wiebil
ChoiceTech Accounting Solutions

Top
#35844 - 03/04/13 08:32 AM Re: GV Filter [Re: Miriam]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(184.70.7.174)
Are you getting the error in GridView or Excel? What EXACT error are you getting?

Please let us know what results you want for each of the following cases:
Code:
E10 = 0 and F10 = 0
E10 = 0 and F10 = 2
E10 = 1 and F10 = 0
E10 = 1 and F10 = 2




Edited by Andrew Bates (03/04/13 08:59 AM)
_________________________
Andrew Bates

Top
#35847 - 03/04/13 09:30 AM Re: GV Filter [Re: Retired_Guy]
Miriam Offline
Adagio Maven

Registered: 05/10/12
Posts: 162
Loc: Altona, MB
(206.45.238.165)
E10=0 and F10=0 show: 0%
E10=0 and F10=2 show: -100%
E10=1 and F10=0 show: 100%
E10=1 and F10=2 show: -50%

I was getting the #DIV/0 error.
_________________________
Miriam Wiebil
ChoiceTech Accounting Solutions

Top
#35848 - 03/04/13 09:52 AM Re: GV Filter [Re: Miriam]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(74.198.150.252)
Why -50%?
_________________________
Andrew Bates

Top
#35849 - 03/04/13 10:04 AM Re: GV Filter [Re: Retired_Guy]
Miriam Offline
Adagio Maven

Registered: 05/10/12
Posts: 162
Loc: Altona, MB
(206.45.238.165)
Because it decreased by 50%. For example if I have 50 in column E and 100 in column F then it means that the 100 decreased to 50 which is a variance of -50% (so whenever column F has a higher value than column E the variance will be negative).
_________________________
Miriam Wiebil
ChoiceTech Accounting Solutions

Top
#35853 - 03/04/13 10:53 AM Re: GV Filter [Re: Miriam]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(184.70.7.174)
Use:
Code:
IF(F10=0,
   IF(E10=0,0,1),
   (E10-F10)/F10
  )

This will give you the percentage increase (decrease) between the two numbers.
_________________________
Andrew Bates

Top
Page 1 of 2 1 2 >


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 112 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1873 Members
5 Forums
14553 Topics
71030 Posts

Max Online: 432 @ 01/20/25 10:17 PM
October
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31