Create a Pivot Table with UiPath StudioX
Build a StudioX automation that turns an Excel data range into a pivot table for repeatable reporting.
What you will create
Automate a pivot table that sums quantities by category. Distinguish row counts from unit totals and check the output against a small dataset with known results.
Before you start
This workflow uses StudioX with modern Excel activities and an already configured compatible Excel environment. Menus can vary by version. Work on a disposable workbook copy: the activity can delete and recreate a pivot table with the same name at the destination. Do not target a production report.
Step-by-step
- Enter the three columns and four rows below in a Data sheet. Keep headers on the first row and quantities numeric. Create an empty Result sheet.
- In a StudioX test project, add Use Excel File and select this workbook copy.
- Inside it, add Create Pivot Table. Select Data!A1:C5 as the source, a new name such as TestSummary and Result!A1 as the destination.
- Add Category as Row. Add Quantity as Value with Sum, then Reference as Value with Count.
- Save the project, run it on the copy and open the result. Compare both measures against the expected values before reusing the automation.
Example to adapt
Reference,Category,Quantity
A01,Notebooks,3
A02,Pens,5
A03,Notebooks,2
A04,Pens,4The fictional data should produce Notebooks: 5 units and 2 references; Pens: 9 units and 2 references. The expected total is 14 units across 4 rows. Counting references does not automatically count distinct references: all four happen to be different here.
Check your result
The additions were checked separately; this is not a UiPath execution. Also verify that all four rows are included and source data remains intact. On a fresh copy, change A03 from 2 to 7: Notebooks should reach 10 and the total 19, while the reference count stays 4. This second case helps identify an incorrect calculation or a source that was not reread.
Common problems
Notebooks shows 2 instead of 5: you are probably counting rows rather than summing units. Ignored quantities: check for numbers stored as text. Missing new row: a fixed range does not expand automatically; adjust the source before rerunning. Existing pivot replaced: check its name and destination and restart from a copy instead of risking your data.
Next steps
Read the UiPath profile on QAILT. Add a column field, such as month, only after validating these simple totals.




