DallDenmark
New Member
- Joined
- May 3, 2018
- Messages
- 5
I have a data set where below is an example.
I need to find the price with the latest start data, filtered by project no, task code and code.
So for Project no 032839-003 for code "E2" and task code "blank", the correct price is 725 since the latest start data is 01-01-2016.
[TABLE="width: 628"]
<tbody>[TR]
[TD]Project No_[/TD]
[TD]Task Code[/TD]
[TD]Work Type Code[/TD]
[TD]Code[/TD]
[TD]Start Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]720[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]720[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]825[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]825[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]
How do I make a formula in Powerpivot, giving me this result?
I need to find the price with the latest start data, filtered by project no, task code and code.
So for Project no 032839-003 for code "E2" and task code "blank", the correct price is 725 since the latest start data is 01-01-2016.
[TABLE="width: 628"]
<tbody>[TR]
[TD]Project No_[/TD]
[TD]Task Code[/TD]
[TD]Work Type Code[/TD]
[TD]Code[/TD]
[TD]Start Date[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]720[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]720[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD][/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]725[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]825[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2016[/TD]
[TD]825[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]10.07.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]032839-003[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
[TR]
[TD]040238-001[/TD]
[TD]30.17.1000[/TD]
[TD]SH[/TD]
[TD]E2[/TD]
[TD]01-01-2015[/TD]
[TD]815[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]
How do I make a formula in Powerpivot, giving me this result?