How to Rearrange Excel Scorecard Rows and Fill Repeated Labels in Power Query
Question details
The user needs to transform source data into a scorecard layout, ensuring no blank cells remain beneath grouped fields like manufacturers and categories.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a clean scorecard layout from raw source data without manually copying and pasting or relying on PivotTable blank-cell formatting.
- Observed behavior
- Source data or standard PivotTables often leave blank cells beneath grouped category labels, requiring a transformation to fill repeated values and rearrange rows.
Ensure your source data is formatted as an Excel Table (by pressing Ctrl+T) before importing it into Power Query to maintain a dynamic connection.
Use Power Query to Fill Down and Reshape Data
Leverage the 'Fill Down' and 'Unpivot' features in Power Query to quickly populate empty cells under categorical labels and structure a proper scorecard layout.
Power Query is the most efficient tool for reshaping data without manual copy-pasting. By using the Fill Down and Unpivot commands, you can easily transform sparse datasets into a complete, tabular scorecard format.
Select any cell inside your data table, navigate to the 'Data' tab on the Excel ribbon, and click 'From Table/Range' to open the Power Query Editor.
Select the columns containing the manufacturer and category labels that have blank cells beneath them. Right-click the column header, select 'Fill', and then choose 'Down'.
If your scorecard metrics are spread across multiple columns, select your main category columns, right-click the headers, and choose 'Unpivot Other Columns' to reshape the data into a flat format.
Click the drop-down arrow on your category or manufacturer column headers and choose 'Sort Ascending' or 'Sort Descending' to arrange the rows into your specific scorecard order.
Click 'Close & Load' on the Home tab of the Power Query Editor to output the transformed, clean scorecard table into a new Excel worksheet.

Try WPS Office for Your Data Analysis Needs
While Power Query is a specialized Excel tool, WPS Office offers a free, lightweight, and highly compatible alternative for everyday data processing. Enjoy familiar UI, seamless migration, and powerful PivotTable features without high subscription costs.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Open your Excel File: Launch WPS Spreadsheets and open your existing .xlsx source data file without losing any formatting or data integrity.
- 3. Process Data Effectively: Use WPS Spreadsheets' robust data sorting, Go To Special (Blanks), and PivotTable options to effortlessly manage your scorecard data.

Frequently Asked Questions
Can I automatically fill blank scorecard cells without using Power Query?
Yes. You can use the 'Go To Special' feature in Excel or WPS Spreadsheets. Select your range, press F5, click 'Special', choose 'Blanks', type '=' and point to the cell directly above, then press Ctrl+Enter to fill all blanks instantly.
Why does my PivotTable leave blank cells in the row labels?
By default, PivotTables group items and only show the top-level label once to maintain a clean outline. To fill these blanks, click inside the PivotTable, go to the PivotTable Design tab, select 'Report Layout', and choose 'Repeat All Item Labels'.
Will using Power Query alter my original source data?
No. Power Query connects to your source data, applies your transformation steps in the background memory, and outputs a completely new table. Your original source data remains untouched and safe.




