How to make datediff ignore date slicer?

asiddiq97

New Member
Joined
Sep 20, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I am trying to write an equation that will project the gross profit based on gross profit and # of days between July 1st, 2021 and last date of service for ALL prescribers.

When I filter by one prescriber, the equation is using the difference of dates from the first date the doctor wrote a prescription to the date of their most recent prescription sent (date of service slicer starts at 7/13 instead of 7/1 and calculation is based on 62 days instead of 74 days).

The equation I am using right now is

Projected GP =
( SUM ( 'GP 2'[Gross Profit] ) )
/ DATEDIFF (
FIRSTDATE ( 'GP 2'[Date Of Service] ),
LASTDATE ( 'GP 2'[Date Of Service] ),
DAY
) * 365

50cXA.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,699
Messages
6,173,903
Members
452,536
Latest member
Chiz511

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