trouble with days between dates in powerpivot

wtallen

New Member
Joined
Nov 27, 2014
Messages
3
I am trying to calculate the number between the date in a column and a specified date such as 6/30/2012. In Excel I am able to just use something like =+Date(2012,06,30)-G2 but in powerpivot pulling from an Access data base, I try to use BetweenDates. I have tried several times and thought something like DatesBetween,Dates,[DtofSvc], Date(2012,06,30)) as a calculated field. Am I way off base?

this is my first post so please forgive and correct any fax pas.

Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Ya, DateBetween is totally not what you think it is for :)

You should do much like you do in native excel. [DtofSvc] - Date(2012,06,30) should give you the number of days between, though you may have to round or whatever (it will give the floating point)
 
Upvote 0
Ya, that is just showing you a number... formatted as a date. Change the type of that calc column to a number.
 
Upvote 0

Forum statistics

Threads
1,224,051
Messages
6,176,084
Members
452,704
Latest member
Michael AA

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