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])
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])