#9233 - 06/17/07 10:06 PM
Financial Reporter: .RowFormat & FormatHidden
|
Paradise is perspective
Registered: 07/15/01
Posts: 875
Loc: Christ Church, BARBADOS
|
Hello I'm using Adagio Ledger 8.0D 061013 with the .RowFormat and FormatHidden to try and make the Bank row on a Balance Sheet jump up and down the sheet according to the balance being an Asset or Liability. Instead it's making me jump up and down... I've done this successfully a couple times before but here are my current problems: 1. Since the sheet has multiple columns the possibility exists that the row could have a Debit balance in some columns and a credit balance in others. While I have "successfully" handled this before I wonder if it's just that I've been lucky that the data never encountered a situation where the column data was actually mixed (asset & liability). Can this "mixed" row be handled properly ? Any sample data with specs that can show the correct formulas to handle this ? 2. The spec is hiding some rows and I just can't seem to get them unhidden no matter what I do and I've tried everything. Everything except what works. So go ahead and embarass me by telling me how simple this is. Among other things, I've tried removing the .RowFormat and Recalculating, Selecting across the rows and RightClick|Unhide, Selecting entire sheet and Format|Rows|Unhide - No luck can't get back the rows to troubleshoot them. Help  Pete
|
Top
|
|
|
|
#9236 - 06/18/07 11:41 AM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: BAMPH]
|
Adagio Action Team
Registered: 03/09/99
Posts: 11550
Loc: Vancouver, BC Canada
|
Hi Pete,
For the first question, what is the condition that you want to show for showing the bank account? If it is simply the debit/credit condition of the bank account for a specific column, it doesn't matter whether any of the other column values are: =IF($D6=0,"FormatHidden","") goes in the RowFormat column. =ADDEBIT and =ADCREDIT is used for outputting the bank amount. If using a SmartSheet, you should separate the bank account out from the other accounts and be on a separate row. A sample spec GL!BankLOC shows formulas.
If you want to have different hiding results of row based on 'mixed results', then you need to consider what conditions force a row to be hidden. Perhaps all columns need to be credits (or debits) in order to be hidden. Remember, you don't want the bank account to be showing in both or neither of Assets/Liabilities.
When doing formulas with FormatHidden, it is best to not have .RowFormat in the top corner until you are sure things are working. You can tell if a row will be hidden by seeing 'FormatHidden' in the right-most column. ------ As for your second question, the scenario is likely that a row has been interpreted as having zero height, rather than being 'hidden'. The likely solution is to highlight the rows above and below the missing row, then re-size any of the visible rows. This will force a resize of all rows to match, including the missing ones. ------- There are a couple of FormatHidden issues not hiding/showing correctly that should be resolved in the next release of Ledger. These changes have already made it into the FX80G release.
_________________________
Regards, Softrak Tech Support
|
Top
|
|
|
|
#9283 - 06/21/07 11:40 PM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: Softrak Support]
|
Paradise is perspective
Registered: 07/15/01
Posts: 875
Loc: Christ Church, BARBADOS
|
Hi Softrak,
Adjusting the row heights did the trick - thanks.
Regarding the "floating" Bank row, I do not understand why you thought/think that "it doesn't matter what any of the other column values are" and the sample spec noted does not use multiple columns so the formulas there weren't much help in that regard.
OK so here's the scenario:
> Col.D Current period is June 2007, Balance is CR $1,000 > Col.E Budget Current Period June 2007, Bal is DR $ 900 > Col.G Prior Year, June 2006 the balance was DR $ 700
Acknowledging that Budget is an unusual column on a Balance sheet, my feeling is that > all 3 columns of the Bank should only show in one section (row) > and that section should be in the Current Liabilities > I also believe that the spec. should be able to handle any combination of the above, continuing to show the single Bank row in the section that corresponds to the Current Period Balance > Whichever section the Bank Row appears in, then it should be "hidden" in the other section. > And yes, the figures must add up and not be duplicated :-)
I tried accomplishing this using the formulas you noted from the sample spec above and bearing in mind that you said the "other" column values did not matter - I just could not get it to work.
So I went back to my method:
Liabilities Section: Col.D: =ADCRONLY("GLDATA.BAL",$B40) Col.E: =IF($D40==0,0,-ADGET("GLDATA.BM",$B40)) Col.G: =IF($D40==0,0,-ADGET("GLDATA.BAL_PY",$B40)) Col.I: =IF($D40==0,IF($E40==0,IF($G40==0,"FormatHidden",""),""),"")
Asset section similar but with =ADDEBIT and the embedded =ADGET commands would not have the "-" sign in front.
Seems to work, the only drawback being that it would appear that one looses the "Drill Down" ability if the AD??? function is embedded within other functions.
If there's a way to accomplish this and still get full drill down capability, please let me know.
Thanks for bearing with all that and I hope that someone will find it useful - Peter
|
Top
|
|
|
|
#9286 - 06/22/07 10:14 AM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: BAMPH]
|
Adagio Master
Registered: 03/16/99
Posts: 10504
Loc: Canada
|
Hi Peter,
Since you want the position of the row to be dependant on the current balance in the bank account, and not what it's balance was last year, or the budget figure, then the ".FormatHidden" command should reference column D only. Then, just present the other colums with their correct sign (debit or credit) as appropriate.
_________________________
Andrew Bates
|
Top
|
|
|
|
#9292 - 06/23/07 12:05 PM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: BAMPH]
|
Adagio Master
Registered: 03/16/99
Posts: 10504
Loc: Canada
|
Hi Peter, Did you remember to send me the dataset? It hasn't arrived. To deal with the problem of the incorrect total, just make the =SUM() part of an =IF() statemnt that excludes the row containing the bank balance if it is hidden. So, for the total you need something like:
=IF($D9=0,SUM(E10..E25),SUM(E9..E25))
or, if you'd prefer, place an =IF() condition on the adjacent colums containing the prior year and budget figures so that they return 0 if the bank column has 0. For example:
=IF(D9=0,0,ADGET("gldata.LYM",$B9))
That should work. (I'm still willing to take a look at the data though.)
_________________________
Andrew Bates
|
Top
|
|
|
|
#9365 - 07/01/07 09:36 PM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: BAMPH]
|
Paradise is perspective
Registered: 07/15/01
Posts: 875
Loc: Christ Church, BARBADOS
|
OK Guys,
I tried the option of using the IF() function in the Total row and leaving the ADDEBIT/ADCREDIT without the IF() so as to keep the drill down ability but this does not handle all conditions.
The only way I'm getting all conditions handled is to use the IF()in the Budget and Prior Year columns so I'll stick with that.
BTW - For anyone trying this, in the examples in my above posts, I should have said ADCREDIT not ADCRONLY. So to sum up, this is what's working best:
Liabilities Section: Col.D: =ADCREDIT("GLDATA.BAL",$B40) Col.E: =IF($D40==0,0,-ADGET("GLDATA.BM",$B40)) Col.G: =IF($D40==0,0,-ADGET("GLDATA.BAL_PY",$B40)) Col.I: =IF($D40==0,IF($E40==0,IF($G40==0,"FormatHidden",""),""),"")
Asset section similar but with =ADDEBIT and the embedded =ADGET commands would not have the "-" sign in front.
Seems to work, the only drawback being that it would appear that one looses the "Drill Down" ability if the AD??? function is embedded within other functions.
Thanks again, Peter
|
Top
|
|
|
|
#9394 - 07/05/07 07:24 PM
Re: Financial Reporter: .RowFormat & FormatHidden
[Re: BAMPH]
|
Adagio Master
Registered: 03/16/99
Posts: 10504
Loc: Canada
|
Hi Peter,
What are you drilling down on? There's nothing to drill down to for budget and prior year amounts anyway.
_________________________
Andrew Bates
|
Top
|
|
|
|
|
0 registered (),
70
Guests and
0
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
1865 Members
5 Forums
14469 Topics
70666 Posts
Max Online: 432 @ 01/20/25 10:17 PM
|
|
|
|
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
|
|
|
|
|
|