Define Current/Prior Periods Using 2 Date Fields

Cmacvp16

New Member
Joined
Aug 8, 2002
Messages
44
Please help a newbie powerpivot user who works with healthcare claims data.

I pulled 27 months of claims data and need a DAX formula to define each record PERIOD as CURRENT or PRIOR. Two date fields exist "Service Date" is the date medical service performed, and "Paid Date" is the date the claim was paid.

CURRENT PERIOD is defined as:
SERVICE DATE: 1/1/2019 to 12/31/2019
and PAID DATE: 1/1/2019 to 03/31/2020

PRIOR PERIOD is defined as:
SERVICE DATE: 1/1/2018 to 12/31/2018
and PAID DATE: 1/1/2018 to 03/31/2019

NOTE: all records are to be excluded that don't fit into the above conditions. For example service date 12/1/2018 and paid date of 5/1/2019. Each period is defined as 12 months of services that pay within 15 months of paid claims.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,225,725
Messages
6,186,646
Members
453,367
Latest member
bookiiemonster

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