How to Fix Lost PivotTable Drill-Through for an SSAS OLAP Cube in Excel
Question details
The user is experiencing a loss of drill-through functionality in an Excel PivotTable connected to an SSAS OLAP Cube.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to use the drill-through (Show Details) feature on a PivotTable connected to an SSAS measure.
- Observed behavior
- An error occurs or the drill-through fails because Excel's DRILLTHROUGH request conflicts with the measure's DetailRows expression or cube metadata changes.
Ensure you have the appropriate permissions to access and modify the SSAS cube metadata, and check that your SQL Server Management Studio (SSMS) is up to date.
Modify the DetailRows Expression and Rebuild Cache
Fix conflicts between Excel's DRILLTHROUGH request and the SSAS measure by adjusting the DetailRows expression and refreshing the PivotTable cache.
The drill-through issue typically results from a mismatch between the DRILLTHROUGH statement generated by Excel and the DetailRows expression defined in the SQL Server Analysis Services (SSAS) model.
Open SQL Server Management Studio (SSMS) and test the specific measure to verify its drill-through behavior outside of the Excel environment.
Inspect the DetailRows expression defined for the SSAS measure. Ensure it does not conflict with standard DRILLTHROUGH requests sent by Excel.
Make necessary adjustments to the expression or metadata in your SSAS project and deploy the changes to the cube.
Open your Excel workbook, navigate to PivotTable Analyze > Options > Data tab, set 'Number of items to retain per field' to 'None', and click 'Refresh' to clear the old cache.

Use SSAS Queries or Detail Tables as Workarounds
If you cannot modify the DetailRows expression directly, use alternative reporting methods to retrieve the granular data.
Try WPS Office for Your Daily Spreadsheet Needs
While advanced SSAS OLAP Cube management requires Microsoft's specific SQL and Excel environment, WPS Office is an excellent, lightweight alternative for standard data analysis, PivotTables, and daily spreadsheet tasks without the high subscription costs.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free suite and follow the installation prompts.
- 2. Open WPS Spreadsheet: Launch WPS Office and open the Spreadsheet application to access familiar data analysis tools.
- 3. Import Excel Files: Open your existing .xlsx files directly in WPS to create standard PivotTables and analyze your data seamlessly.

Frequently Asked Questions
Why does the 'Show Details' option gray out in my PivotTable?
The 'Show Details' (drill-through) option may be grayed out if the PivotTable is connected to an OLAP cube where the measure does not support drill-through, or if the PivotTable cache has become corrupted and needs to be refreshed.
What is a DetailRows expression in SSAS?
A DetailRows expression is a DAX property in tabular models that defines the specific columns and rows to be returned when a user attempts to drill through to the underlying detailed data behind an aggregated measure.
How do I refresh an OLAP cube connection in Excel?
Navigate to the 'Data' tab on the Excel ribbon, click 'Queries & Connections', find your SSAS cube connection in the pane, right-click it, and select 'Refresh'.




