[英]How do I add two pivot tables to the same Excel sheet through a SAS program using two SAS datasets as the pivot data sources?
I have two SAS tables and I want to create pivot tables in Excel from them. 我有两个SAS表,我想从中创建Excel中的数据透视表。 Both must be in the same sheet, say Sheet1
. 两者必须在同一张纸上,例如Sheet1
。
In the same sheet, I need to create a table that contains cells with formulae based on the first two pivots, eg C3-C10
, where C3
is a data point of the first pivot and C10
from the second pivot. 在同一张纸上,我需要创建一个表,该表包含具有基于前两个枢轴的公式的单元格,例如C3-C10
,其中C3
是第一个枢轴的数据点,而C10
是第二个枢轴的数据点。
An additional challenge would be to figure out a way to format and change colours of specific rows as required in the sheet. 另一个挑战是要找到一种方法来按照工作表中的要求格式化和更改特定行的颜色。
This answer is for people that do not have any SAS Office Analytics, or the Office plugin, etc. If you have some of the above tools (which I do not), there is probably a much better approach. 此答案适用于没有任何SAS Office Analytics或Office插件等的人。如果您拥有上述工具(我没有),则可能是更好的方法。
If you find yourself in this situation I suggest that you do the following: 如果您遇到这种情况,建议您执行以下操作:
This also means you can update the data if people already have the excel file open, so it's suitable for files located on a network etc. Pretty clunky but it will do when no better options are available. 这也意味着如果人们已经打开excel文件,则可以更新数据,因此它适用于网络上的文件等。笨拙,但是当没有更好的选择时,它就可以使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.