Need this formula to look back 2 full years
In the following code, we are looking to show all records, where, the part# had no sales for the 2 month period selected by the user. But we also do not want to show this part if the current onhand balance is o, and also, we do want to show when was the last sale for this part. THe change i need is that the code here will show the last sales for past year only of calender year. I would like it to show 2 years back, meaning 2 full years from current date. I think i need to have an OR statement here and {SUMPRT.IQYER#} = {?Year} but not really sure. this is a crystal reports formula.
{PARTINV.IEQOH#} <> 0.00 and ( if {?Month}=1 then (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year}) and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1)) else if {?Month}=2 then ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 ) and {SUMPRT.IQYER#} = {?Year} else if {?Month}=3 then etc...
Hi Paul,
This formula is pretty confusing because I can't decipher which fields relate to what. I think though you may be overthinking the formula.
It looks like you are evaluating each month of the year individually. Instead of using nested IFs, have each month as a separate statement. Better yet, use a case statement like:
{PARTINV.IEQOH#} <> 0.00 And
Select {?Month}
Case 1: (({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year})
and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1))
Case 2: ({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 )
and {SUMPRT.IQYER#} = {?Year}
Default: etc...;
Separating the months into a Case or independant IF should get you your results.
Thanks,
Brian
Similar Messages
-
I lost all my events on iphone prior to 2015 and this is not nice as I often need to look back on past dates they are on my Macbook air but how can I get them back to my phone
They're not lost, they simply don't show because you settings ask it not to.
Go to Settings --> Mail, Contacts, Calendar --> Calendar --> Sync --> All events -
My Mac Book Pro had a split drive with Windows Microsoft Access on it and it was removed when Mavericks installed. I need this so how can I go back to the old system?
Restore from the backup you had prior to installing Mavericks.
However, the upgrade should not have altered your partition scheme. Did your erase and format the drive prior to upgrading? -
When trying to do a system backup to my remote LaCie hard drive, what does it mean when I get a message that says "waiting for volume LaCie disk"? While this message apears no back-up occurs. Is there a setting I need to change?
You can't do a backup of icloud to an external drive. In fact, does your post have anything to do with icloud (you're in the icloud forum)?
What kind of "system backup" are you doing? Are you using Time Machine? -
21 September, 2014, from India.
MD513AE/A iPad Wi-Fi-16GB White - Model A 1458
I have purchase this from Dubai, UAE, some 2 years back.
I am NOT able to switch it on; when connected to power supply, the battery icon comes in but no signs of charging.
After some times the ‘Apple’ icon comes in. Tried simultaneous operation of Sleep and Power buttons, but of no use.
Sometimes a picture of cable and ITunes comes in; but not able to connect to
P C as there is no battery charge.Hi madhu254,
Thank you for visiting Apple Support Communities.
If your iPhone is not charging, please check out this article.
iPhone and iPod touch: Charging the battery
There's a Resolving issues section, but you may want to read it all.
Best regards,
Nubz -
i got a message saying this ipad cannot be backed up because there is not enough icloud storage available but when i try to close it it didnt close its looks like get hang up
Try this now.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up. -
How do I display decimal hour as time in Numbers for iPhone5 ? Example, I created a formula (originally in Exel) where the result is 2.25. I need this to be displayed as 2:15, (2h, 15m). Here is the formula in cell b8 =SUM((A6/18)*B3 (B6/8)*B3 (A6 B6)/70*B3 B2)/60. The result can be in either b8 or a different cell.
Thanks for helping this noviceB1=DURATION(0,0,A1,0,0,0)
The DURATION function combines separate values for weeks, days, hours, minutes, seconds, and milliseconds and returns a duration value.
DURATION(weeks, days, hours, minutes, seconds, milliseconds) -
my ipad says : this ipad cannot be backed up because there is not enough icloud storage available . you can manage your storage in sttings ..... i dont understand .. i need you help me please
Hi jasmin,
Did you read what Demo wrote? He wasn't saying he had a problem. He was responding to the OP who had a problem, and was providing a solution. Follow what Demo said to do....
Cheers,
GB -
When I look up the creation date for files on my Macbook (using "get info", or the information window in Iphoto) I get the date and month in brackets, but not the year. Why is this and how can I look up the year?
Does the Date Modified column in a window set to List view show the date correctly, or does it also display it incorrectly?
To add additional columns to a Finder (folder) window, with that window open and active open the View Options for it. You can do that by pressing Command-J or by selecting View Options from the View menu in the main menubar. -
I am trying to back up my iPad via an external hard drive. How do i do this? My cloud is full>
Are you trying to backup to an external HD connected to your computer, or a wireless HD interfaced to an iPad?
Mac - How to Move the iPhone & iPad iTunes Backup folder to an External Hard Drive
http://osxdaily.com/2011/03/05/how-to-move-the-iphoneipad-itunes-backup-folder-t o-an-external-hard-drive/
How to Change the Location of Your iPhone Backup (Mac)
http://ismashphone.com/2012/05/how-to-change-the-location-of-your-iphone-backup. html
Windows - Change iPad default backup location
http://apple-ipad-tablet-help.blogspot.com/2010/07/change-ipad-default-backup-lo cation.html
Windows - Changing IPhone and iPad backup location
http://goodstuff2share.wordpress.com/2011/05/22/changing-iphone-and-ipad-backup- location/
Cheers, Tom -
Hello, I just purchased 1 year prepaid Creative Cloud Photography Plan and Lightroom saying " Develop Module is Disabled " What do I need to do to activate the full program?
Are you signed into the creative cloud application manager?
Did you install Lightroom from the creative cloud application manager? -
Hi, my free trial license has expired, and I am wondering if it's possible to only pay for one month for after effects without locking for a year with monthly fee. I only need this for a project that is ending next week.
Creative Cloud Plans
https://creative.adobe.com/#plans -
I purchased Adobe Export PDF Annual. The cost was 23.00 for the year but I don't need this so I'd like to cancel this subscription. How can I do this?
See http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html
[topic moved to Acrobat.com Services forum] -
Looking for a "year at a glance" InDesign calendar WITH holidays. I can't seem to find any with the holidays. Thanks
Screw it?
I sent you a link as to how to use Calendar Wizard (free) to make a calendar with interfaith holidays.
If you just want ordinary holidays, Calendar Wizard (http://calendarwizard.sourceforge.net/) does everything you want?
What more do you want?
Maybe you are looking for
-
External Monitor Issues - MacBook Pro +Acer
Hello Everyone!! I currently have my new Macbook Pro hooked up to a Thunderbolt display and all is running well! BUT, I also have a mid 2009 MBP that I am setting up with a new ACER S271HL monitor (one of their newer models) and I am having some "qu
-
Intermittent color saturation problem
My display has very saturated colors and too much contrast - on both the laptop display and on an external monitor. It goes back to normal if I unplug and reconnect the external display, or in an unpredictable way just on the macbook. Everytime I res
-
Some of my notes disappeared. How can I retrieve them?
Some of my notes disappeared without even erasing them. How can I retrieve them?
-
ThinkVantage Toolbox does not run after BIOS update
Lenovo ThinkVantage System Update Tool on my T410 ThinkPad (2518EWG) offered me download and installation of ThinkPad BIOS Update Utility US version 1.28-1.11. Since then, whenever I try to run Lenovo ThinkVantage Toolbox I receive a message: „This
-
I archived my Documents folder today and copied it over to my other Powerbook, which runs OS 9. The documents folder on my Powerbook that runs OSX (10.4.6) is 8.76 GB (according to Get Info). Two weird things happened as I did this. 1) As OSX was fin