If Statements with Dates

AgingRapidly

New Member
Joined
May 31, 2018
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Have query for 2022 Receipts. Want to add date col to the PVT showing date if red'd w/i last 4 days & qty col showing qty rec'd on that date. Can be more than 1 receipt entry for an item on a date. Rec'd product must be tested prior to shipping, so need to add another col for Anticipated Release Date adding a number of days based on the day of wk rec'd.

Tried calculated col & measures--yet to find solution. Added Date_Diff calc col to 2022 Receipts thinking could be used in measure.

Some Transaction Date entries have date beyond today (entry errors). 2 rows per instance--1 data entered; 1 entry reversed. Filtered Date_Diff col to values > 0 to avoid them.

Created Prior to Today measure - TODAY()-4.

Attempted measure to return Transaction Date if it is <= 4 days from TODAY().

When Transaction Quantity added to PVT, number doesn't match qty for Transaction Date.

I feel like I'm close, but I can't work it out. Any assistance will be greatly appreciated. Thank you


Screenshot Failed Measure.pngScreenshot Measures.pngScreenshot Data Table Window.pngScreenshot Data Model.pngScreenshot Pivot Table.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top