简体   繁体   English

将两个表合并到一个数据透视表中-列的顺序不同

[英]Merge two tables into one pivot table - order of columns is different

I saw how to merge two different tables into one pivot but they all had the same order of columns. 我看到了如何将两个不同的表合并为一个枢轴,但是它们都具有相同的列顺序。 I have two different excel sheets from two different DBs and I want to merge both into one pivot - they have the same column names but in different order. 我有来自两个不同数据库的两个不同的excel工作表,我想将两者合并为一个枢轴-它们具有相同的列名,但顺序不同。 Attached is the screen shot of the first table, the second table and the pivot table I would like to have 附件是我想要的第一张桌子,第二张桌子和数据透视表的屏幕截图

在此处输入图片说明

Found the answer! 找到了答案! One should just attach both tables one right or left to each other and create a pivot table from one source rather multiple. 一个人应该只将两个表彼此左右相连,并从一个源而不是多个源创建一个数据透视表。 However, excel then differentiates between A1 and A1_1 for the second table. 但是,excel然后区分第二张表的A1和A1_1。 To solve this I used calculated fields for a new field of A1 and A1_1. 为了解决这个问题,我将计算字段用于A1和A1_1的新字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM