AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • 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 Analytica...
Altering a Column C...
 
Notifications
Clear all

Questions Altering a Column Calcuation Based on a Condition

 
Acumatica Analytical Report Manager (Financial Report Writer)
Last Post by Royce Lithgo 7 years ago
8 Posts
4 Users
6 Reactions
5,121 Views
RSS
Posts: 6
 John Rygielski
Topic starter
March 14, 2018 8:32 am
(@john-rygielski)
Member
Joined: 8 years ago

I am creating ARM financial reports, and one of the columns included in the report is a % Change calculation.  As an example, % Change for Actual (A) to Budget (B) would typically be calculated as (A-B)/B*100.  However, whenever the divisor (B) is negative, the sign of the % Change is reversed.  So, if the Actual was 100 and the Budget was -200, the result is -150%.  However, 100 is an increase or improvement over -200, so the % should be positive.

How can I control the calculation for the column so that it effectively accomplishes If B>=0 then (A-B)/B else ((A-B)/B)*-1?


7 Replies
Posts: 6
 John Rygielski
Topic starter
March 16, 2018 10:11 am
(@john-rygielski)
Member
Joined: 8 years ago

Never mind - I've got it .... = iif(B>=0,(A-B)/B,((A-B)/B)*-1)


Reply
slroberts reacted
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
March 16, 2018 10:58 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Nice one John!  👍

And thanks for sharing your solution.


Reply
 Joslyn Dawson
(@jdawson)
Joined: 6 years ago

Member
Posts: 5
March 25, 2019 1:14 pm
Reply toTim RodmanTim Rodman

My question is related to this topic.  I am new to Acumatica.  I have built my reports with a variance column in my income statement.  I am trying to build an IIF statement to essentially give me a favorable or unfavorable variance.  For example, my income accounts need to subtract Actual minus Budget but my expense accounts need to subtract Budget minus Actual.  This gives a more accurate view of the statement.  I thought I could the account type, but that doesn't seem to be a parameter I can choose.  Any suggestions?  


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
April 16, 2019 8:17 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Hi Joslyn,

What about using @RowCode in your formula to detect what row you're on. Rows before a certain number would be Income, rows after a certain number would be Expense.


Reply
slroberts reacted
Posts: 5
 Joslyn Dawson
April 17, 2019 12:30 pm
(@jdawson)
Member
Joined: 6 years ago

Thanks, Tim.  I will give that a try!


Reply
Tim Rodman reacted
Posts: 5
 Joslyn Dawson
July 10, 2019 4:05 pm
(@jdawson)
Member
Joined: 6 years ago

Solution worked!  I had various income statement rows so first I had to get those rows in line with each other so I can use the same column set with any row.  I coordinated which rows needed to be subtracted similarly (revenue, GP, Equity Earnings, EBITDA, Net income, etc.).  Then I figured out this formula and it worked!

=IIF((@RowCode>4000 AND @RowCode<4100),B-C,IIF((@RowCode=5100),B-C,IIF((@RowCode>7000 AND @RowCode<7100),B-C,IIF((@RowCode=7410),B-C,IIF((@RowCode=7910),B-C,IIF((@RowCode=8500),B-C,IIF((@RowCode=9910),B-C,C-B)))))))


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
July 10, 2019 6:29 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

=IIF((@RowCode>4000 AND @RowCode<4100) OR @RowCode=5100 OR (@RowCode>7000 AND @RowCode<7100) OR @RowCode=7410 OR @RowCode=7410 OR @RowCode=7910 OR @RowCode=8500 OR @RowCode=9910,B-C,C-B)

Gives the same result. You don't need to nest IIF statements when they map to the same result - you can just combine the logical conditions.


Reply
slroberts, Michael.Barker and Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,528 Topics
  • 10.9 K Posts
  • 23 Online
  • 2,414 Members
Our newest member: Megan Pawlowski
Latest Post: Credit Reference Report Needed
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

  • russ Terry Payne Megan Pawlowski
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.

‹›×

    ‹›×