AUGForums.com

An Acumatica User Group

  • Forums
  • Podcast
  • Blog
  • Rolodex
  • Login
  • Start Here
  • Courses
  • Register
Acumatica Forums

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

  • Overview
  • Member List
  • All-Stars
  • Stats
  • Recent Posts
  • Help
Forums
AUG Forums
Acumatica Report De...
Exclude Orders from...
 
Notifications
Clear all

Exclude Orders from Sales Order Summary report  

    Last Post
RSS

Krunal Doshi
Posts: 5
 Krunal Doshi
July 13, 2018 5:32 pm
(@doshikn)
2-5 Posts
Joined: 10 months ago

I want to exclude the Sales Order completely based on the InventoryItem I select in report parameter for Sales Order Summary report (Screen ID - SO610500). Meaning, if I select a particular InventoryItem in the parameter, the report should not include the entire Sales Order where I have the selected InventoryItem as one of the line item.

I have tried Additional Filter by adding SOLine.InventoryID, Does Not Contain condition but that seems to work when I have only 1 line item for the order which needs to be excluded but if there are more line items then it is not working.

I have also tried adding new additional parameter to exclude the select InventoryID but that also does the same.

Can you please suggest any better way to achieve this goal.

Sales Order 1 (Example) - Contains only 1 line item which I want to exclude from report.
Sales Order 2 (Example) - Contains 2 line items out of which 1 item I want to exclude from the report. 
Sales Order Summary Report - Additional filter condition I have added
Sales Order Summary Report - The report itself, which do not list the first sales order but has second sales order. 

SO Summary Report
SO Additiona Filter
SO2
SO1
5 Replies
Tim Rodman
Posts: 2470
 Tim Rodman     ★★ All-Star ★★
July 23, 2018 5:12 pm
(@timrodman)
Over 200 Posts
Joined: 5 years ago

Hi Krunal,

FYI, this is the kind of scenario where Power BI does really well. Why? Because, in general, Report Designer is good at doing calculations one row at a time whereas Power BI can do one row at a time calculations or calculations based on groups of rows. Just thought I'd throw that out there in case you were interested in Power BI.

To do this in Report Designer, the best I can think would be to do a variable in the Detail section. It could be an IIf formula that returns TRUE if the InventoryID on the row is equal to the InventoryID that you are looking for or FALSE if not. Then you'd need to set the ResetExpr on the variable to reset to 0 when it reaches the next Order. I think you would need to move the fields from groupHeaderSection2 to groupFooterSection2 because the variable won't exist until after the Details section. Finally, you'd need to put the variable in the VisibleExpr field of groupFooterSection2 so the section does not print when the variable is false. I think that would do the trick.

Reply
Krunal Doshi
 Krunal Doshi
(@doshikn)
Joined: 10 months ago

2-5 Posts
Posts: 5
July 30, 2018 1:12 pm
Reply toTim RodmanTim Rodman

Hi Tim,

Thanks for your reply. That worked.

This post was modified 2 years ago 2 times by
Reply
Krunal Doshi
 Krunal Doshi
(@doshikn)
Joined: 10 months ago

2-5 Posts
Posts: 5
August 1, 2018 11:56 am
Reply toTim RodmanTim Rodman

Hi Tim,

Seems group total does not work as it is not considering the Visible expression. With Visible expression, the row is not showing in the report but it is still considering in the group total. I have also tried to add a variable for group total under details section but in that also it is considering only those rows which is InventoryID matching but not the entire order. Any suggestions?

Reply
Krunal Doshi
 Krunal Doshi
(@doshikn)
Joined: 10 months ago

2-5 Posts
Posts: 5
August 1, 2018 1:32 pm
Reply toKrunal DoshiKrunal Doshi
Tim Rodman

Ahh, I found it. Unnecessary was making too complicated for totals. I had to declare all variables in groupFooterSection2.

Thanks.

Reply
Tim Rodman
Posts: 2470
 Tim Rodman     ★★ All-Star ★★
August 6, 2018 7:36 am
(@timrodman)
Over 200 Posts
Joined: 5 years ago

Interesting, I thought you'd need to declare them in the Detail section. Glad to hear that you found a way to get it working!

Reply
  All forum topics
  Previous Topic
Next Topic  
  Forum Statistics
11 Forums
1,644 Topics
7,645 Posts
1 Online
1,099 Members

Latest Post: Construction Module/Purchase Orders - Commitments Our newest member: mlaraiv Recent Posts Unread Posts

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

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×