Timephased OLAP cube and missing data search

orangebloss

New Member
Joined
Jun 5, 2013
Messages
43
Hi

I have a pivot based on a timephased OLAP pulling data from Project Server. The pivot shows the Baseline and Baseline 1 work for each week that exists and tables on another sheet show the current week and the status of the project against that baseline.

The issue I am having is where there is no baseline data for a given week so I want it to be able to search the pivot to find the last entry before the current week

I have used this formula in previous weeks reports which doesn't appear to be working

=(IF((VLOOKUP(Week27,PivotTable,Baseline,FALSE)),(VLOOKUP(Week27,PivotTable,Baseline,FALSE))/40,(INDEX(Baseline,MATCH(9.99999999999999E+307,Baseline)))))

WeekActual WorkBaseline workBaseline1 Work
Week1646470
Week3120120100
Week4292276276
Week16110212321253
Week17132715961500


The formula I want to be able to write is for example

Look for Week10 Baseline data
If no Week 10 Baseline data return the last Baseline data before today/current week
so using the table above it would return the baseline data for Week4

I have worked out how to minus the week by 1 using Right 2, which works when the data is available for the previous week but I need to be able to repeat it until it hits the correct week
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Watch MrExcel Video

Forum statistics

Threads
1,122,491
Messages
5,596,477
Members
414,070
Latest member
DuncanLucas

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
Top