Powerpivot process time in groups

BojeErvenius

New Member
Joined
Mar 7, 2014
Messages
14
Hi.

I have 2 tables with data in a PowerPivot model.

Table 1 is Application and table 2 is Lender. They are related on applicationID.

An application can have many lenders. Each lender is a part of a group (1-5) and has a start date and a stop date, there can be many lenders with the same group for each order. They are processed group by group, first group 1 is processed and then group 2 and so forth.

I now would like to create a measure that calculates the average processing time for each group. My workaround at this moment is to transfer the information to the application table with calculated columns, one for each group, and then create the measures base on this columns. This is probably the worst solution ever :(
=MAXX(FILTER(RELATEDTABLE(Lender);Lender[ApplyGroup]=1);Lender[AppliedLenderDT])-MINX(FILTER(RELATEDTABLE(Lender);Lender[ApplyGroup]=1);Lender[AppliedLenderDT])
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Cant edit?
The calculated column should be
=MAXX(FILTER(RELATEDTABLE(ProductApp);ProductApp[ApplyGroup]=1&&ProductApp[AnswerLenderDT]>0);ProductApp[AnswerLenderDT])-MINX(FILTER(RELATEDTABLE(ProductApp);ProductApp[ApplyGroup]=1&&ProductApp[AppliedLenderDT]>0);ProductApp[AppliedLenderDT])
 
Upvote 0
Can you paste a screenshot of what your table relationships look like?

You can upload your screenshot to Imgur using the upload images button on the top. No need to sign-up for an account.

Then you can come back here and paste the Direct Link pictured below into the Insert Image button on this board.

r9Sb6n6.png
 
Upvote 0

Forum statistics

Threads
1,224,096
Messages
6,176,320
Members
452,721
Latest member
Du Toit

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