Answer
Step 1: Create a Placeholder data set with the following structure:
Record
1
2
See the attached placeholder placeholder data.xlsx file for an example.
Step 2: Connect to the data
- Connect to placeholder data.xlsx.
- Connect to sample SuperStore data set.
Step 3: Create Start and End Date Parameters
- In the Data window, click the drop-down arrow at the top right of Dimensions, and then select Create Parameter.
- In the Create Parameter dialog box, name the parameter. In the example workbook, the parameter is named Start Date.
- Under Data Type, select Date.
- Under Allowable values, select Range.
- Set the minimum value to 1/1/2010 and the maximum value to 12/31/2011.
- Under Step Size, select 1 (months).
- When finished, click OK.
- Right-click the parameter and then select Show Parameter Control.
- Repeat steps 1-7 to create an End Date parameter.
Step 4: Create a Date Calculated Field
- With placeholder data selected, select Analysis > Create Calculated Field.
- In the Calculated Field dialog box that opens, type a name for the field. In this example, Order Date.
- In the Formula box, type the following formula:
CASE [Record]
WHEN 1 THEN [Start Date]
WHEN 2 THEN [End Date]
END
Step 5: Create the View
- Drag Order Date from the Placeholder data set to Columns.
- Right-click Order Date on Columns and select Show Missing Values.
- Drag Sales from the SuperStore data set to Rows.
- Click the indicator and select Show data at default position.