AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Conditional Value i...
 
Notifications
Clear all

Questions Conditional Value in Column Set

 
Acumatica Report Designer
Last Post by Tim Rodman 8 years ago
14 Posts
2 Users
0 Reactions
6,653 Views
RSS
JLange
Posts: 45
 JLange
Topic starter
February 8, 2018 10:33 pm
(@jlange)
Trusted Member
Joined: 6 years ago

Bit of a strange one so will try and provide the detail as I've been trying to think outside the box and can't quite crack it.

I have created a P&L for a client who is on Weekly Financial Periods.Β  They do have Month end adjustments that they don't want impacting the weekly figures so I have 2 Ledgers Actual & MTHReport.Β  Day to day trans go to Actual and the month end adjustments for to MTHReport.

IN the P&L Column Set I specify a column for each Ledger Ending balance and add the 2 together to give the YTD postition.

So far so good.

Then the client steps in and says that for certain GL accounts I want the Budget amount to report in both the actuals AND the budget columns.Β  So I isolate the accounts in the Rowset and set these to the Budget Ledger.Β  Due to specifying the ledger in the data source in the Rowset I now am getting a double up in the value for that account in my YTD total because the ledger specification in the Column set is overridden by the BUDGET specification in the rowset.Β  To get around this I put a condition in the columnΒ =IIF(@RowCode In('0350','0311','0360','0381','0383','0385','0456'),G,G+H) which works perfectly....Β  for each individual line.Β  The issue is when I get to the Sum of the group of accounts.Β  I am getting a double up on the lines I specify as BUDGET in the rowset as it Overrides the Actual and MTHReport Ledgers specified in their columns.

I was hoping the @LEdger would be a Parameter that I could use but it doesn't appear to be πŸ™

If you look at the Admin & GEneral Expenses Group there is 1 line Italicised which denotes that it is pinned to the BUDGET ledger in the Rowset.Β  The sum of the lines should be 71,377.63 when it is displaying 87,053.63

2018-02-09-1.xlsx

I have attached the rowset and Column set.Β  Any suggestions are welcome πŸ™‚

Column-Sets-20180209.xlsx

Row-Sets-20180209-1.xlsx


13 Replies
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
February 8, 2018 11:32 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Gotta love requests like this. Can you say job security? Hopefully you're getting paid by the hour on this one.

Copying the relevant section of your Excel file here with italicized lines highlighted:

Can you attach the entire report definition XML file? Might be easier to troubleshoot than using the Excel files.

It's totally not intuitive, but the XML file will carry the Row Set and Column Set definitions along with it.

You can get it by choosing the Export as XML option on the Report Definitions (CS206000) screen like this:

I think the crux of the problem here is that the Column Set calculations happen after the Row Set calculations.

Interesting thought about using @Ledger as a parameter.

Β 

Have you tried copying your formula from Column I

=IIF(@RowCode In('0350','0311','0360','0381','0383','0385','0456'),G,G+H)

Β 

Into Column G and changing it to look like this:

=IIF(@RowCode In('0350','0311','0360','0381','0383','0385','0456'),G,0)

Β 

And into Column H and changing it to look like this:

=IIF(@RowCode In('0350','0311','0360','0381','0383','0385','0456'),H,0)

Reply
JLange
 JLange
(@jlange)
Joined: 6 years ago

Trusted Member
Posts: 45
February 9, 2018 1:06 am
Reply toTim RodmanTim Rodman

Thanks Tim, just heading off for the weekend but will send xml early next week and as usual really appreciate your inputΒ 


Reply
JLange
Posts: 45
 JLange
Topic starter
February 12, 2018 4:55 pm
(@jlange)
Trusted Member
Joined: 6 years ago

Right-click to Download


Reply
JLange
Posts: 45
 JLange
Topic starter
February 12, 2018 5:26 pm
(@jlange)
Trusted Member
Joined: 6 years ago

Hi Tim

I did try what you suggested which makes logical sense but it appears that the Value conditions only work if the Column type is Calc πŸ™

Β 


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
February 12, 2018 10:06 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Ah, good point. Sorry, I didn't actually try it. It would be a little messy, but you could make columns G and H hidden, then reference them with two calculated columns (I and J) using the formulas above.


Reply
JLange
Posts: 45
 JLange
Topic starter
February 12, 2018 10:23 pm
(@jlange)
Trusted Member
Joined: 6 years ago

Annoyingly this works on the lines I want but the group totals don't calculate those lines as zero


Reply
JLange
Posts: 45
 JLange
Topic starter
February 12, 2018 11:27 pm
(@jlange)
Trusted Member
Joined: 6 years ago

Got a little excited that @BookCode Parameter actually related to Ledger!!

Can't get it to work the way I want though πŸ™

Β 


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
February 12, 2018 11:29 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Have you considered using something like the free Velixo Reports Add-In for Excel instead? That would give you better cell-by-cell control of your formulas without having to keep battling the Row Set vs. Column Set calculation priorities.


Reply
JLange
Posts: 45
 JLange
Topic starter
February 12, 2018 11:30 pm
(@jlange)
Trusted Member
Joined: 6 years ago

No but will have a look at it.Β  Thanks


Reply
JLange
Posts: 45
 JLange
Topic starter
February 13, 2018 12:57 am
(@jlange)
Trusted Member
Joined: 6 years ago

Cracked it.

I brought the condition into the Rowset and set the COlumnCode condition there πŸ™‚

Right-click to Download


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
February 17, 2018 12:52 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Nice work!

Would you mind posting a scrceenshot of your Rowset formula? I wasn't able to import your .xml file for some reason. I'm getting this error:

This import would lead to insertion of a Ledger record with key 5. Such action is prohibited by the relations model, please check if your destination is correctly set up

You probably have some additional ledgers defined that I don't have.


Reply
JLange
Posts: 45
 JLange
Topic starter
February 19, 2018 9:33 pm
(@jlange)
Trusted Member
Joined: 6 years ago


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
February 20, 2018 8:59 am
(@timrodman)
Famed Member
Joined: 10 years ago

Awesome. Thank you for sharing thisΒ @julian-axsys


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,527 Topics
  • 10.9 K Posts
  • 41 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • bwarrell
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright Β© 2026 Β· AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

β€Ήβ€ΊΓ—

    β€Ήβ€ΊΓ—