Date Filter to Calculate a Ratio in 'Manage Power Pivot View'

BenZed

New Member
Joined
Feb 24, 2014
Messages
2
Hi guys,

The topic headline might not be the most accurate description of what I need, but I will explain in detail what I need in the following. I have a lot of experience with Excel, but I only recently started using Power Pivot. Therefore I am not 100% sure on whether the functionality that I need is available. I have already tried a variety of things, but so far I have not gotten it to work the way I need it to.

My goal is to calculate gross/net ratios of a dynamic historical time period which I can then multiply with each line. The important thing is that I need to do this on an order level, so I need the formula to work in the "Manage Power Pivot View" (What is the actual name for this anyways?)

To be more precise:

I have one column with gross revenues and one column with net revenues. I now want to sum all the the Net Revenues for the time period between 21 and 35 days ago and divide it by the gross revenues of the same time period. I tried to use the following formulas which all don't work for one reason or another:

CALCULATE(Sheet1[Net]/Sheet1[Gross],FILTERS(DATESBETWEEN(Sheet1[Created Date],LASTDATE(Sheet1[Created Date])-35,LASTDATE(Sheet1[Created Date])-22)))

CALCULATE(Sheet1[Net]/Sheet1[Gross],ALL(DATESBETWEEN(Sheet1[Created Date],LASTDATE(Sheet1[Created Date])-35,LASTDATE(Sheet1[Created Date])-22)))

Sheet1[Net] includes revenue numbers
Sheet1[Gross] includes revenue numbers
Sheet1[Created Date] contains dates of the last 35 days

Is it possible to do a sum of all values across the rows in this view?

Thanks in advance for your help!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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