Combining different fees columns to create PivotTable income statement? [duplicate]
问题 This question already has answers here : Convert matrix to 3-column table ('reverse pivot', 'unpivot', 'flatten', 'normalize') (3 answers) Closed last year . I have a table which records revenue for each product, split into type of revenue: price, fees, tax etc. To analyze the data I'd like to build a PivotTable to show the revenue breakdown, e.g.: So to build this PivotTable I need to somehow create an intermediate table of the following format so the PivotTable can be used: My question is,