你有没有遇到一个场景,你想吗import the data from one module to another with a different set of dimensions, and you were not able to successfully achieve it? Usually, such type of data movement can easily be achieved through formulae, but in some cases, writing formula might not be the solution—for example, while taking snapshots or exporting the data out of Data Hub to Spoke Models. Here is the article that might help you in such cases.

案例I:从2D到Multi D导入数据时(如数据集线器而言,到辐条模型)。

Let’s say we have a Source module with Unique Key (concatenation of codes of all Customer, Account & Region) in Rows and Time in Columns, and we want to Import the data to the Target module having Customer, Account, Region as dimensions in Page Selectors and Time as a dimension in Columns.

源模块源模块

Target ModuleTarget Module

Solution:在我们导入数据之前,在Anaplan中需要创建很少的东西。

步骤1:唯一密钥的系统模块是您应该创建的第一件事,该模块包含唯一键的所有属性(在我们的情况下为客户);列表格式的帐户和区域。

系统模块系统模块

Step 2:通过删除时间维度,通过在源模块中创建子公司视图来填充源模块中的客户,帐户和区域。

MISBAH_3-1598621872017.PNG

步骤3:通过应用所需的过滤器来创建保存的视图,以使我们拥有可用的数据粒度最低。在这里,我们有行的独特键,列的时间和页面中的行项目。

米斯巴_4-1598621872034.png

第4步:现在,让我们尝试将数据从上述保存的视图导入到目标模块,并查看会发生什么。

Import ActionImport Action

This is an import action, and by looking at it, nothing makes sense and it is not possible to map the data from the source to target in this way. So, what are we missing?

答案在于源模块的重新安装或重新调整并创建修改后的保存视图。让我们回到第3步。将时间维度与唯一的键一起将您的时间维度拉入行,然后将订单项调整为列。应用过滤器并保存视图。

Modified Saved ViewModified Saved View

完美映射Anaplan模型构建器希望寻找。

Below Mapping Line Items as Fixed Line Item.

Import ActionImport Action

在这里,您可以将订单项作为固定行项目或列标题。如果您想将line项目映射为列标题,那么您需要做一件额外的小事情,在我们的情况下,忽略了额外的列(s),即唯一的列表列。

映射行项目作为列标题映射行项目作为列标题

MISBAH_9-1598621872128.PNG

步骤5:运行导入,它将成功加载数据。亚搏彩票手机版免费下载

misbah_10-1598621872133.png

米斯巴_11-1598621872136.png

注意:在这种情况下,最好将行项目映射为列标题物品。

案例II:将数据导入具有n+n维源模块的n维模块的目标模块时。这里“ n”> = 1

假设我们有一个带有客户,帐户和区域的源模块作为页面和时间的尺寸,我们希望将数据导入具有客户的目标模块,将帐户作为页面和时间作为列中的尺寸。

导入后,我们将获得以下选项,然后将源映射为目标。如您在下面的屏幕截图,客户,帐户和行项目中所见维度(区域)。当您运行此导入时,您会看到一些故障。尽管数据已成功加载,但您仍然应该摆脱进口操作中的这些失败亚搏彩票手机版免费下载。

MISBAH_2-1600759819261.PNG

米斯巴_13-1598621872151.png

将您的尺寸遍布,并至少将时间保持在行。您可以在包括时间在内的行中最多有三个维度。完成此操作后,忽略导入映射中的区域维度,您的导入将成功运行。亚搏彩票手机版免费下载

米斯巴_1-1600759585499.png

misbah_15-1598621872162.png

米斯巴_16-1598621872165.png

注意:您还可以将行项目映射为固定行项目,但是最好将它们映射为列标题,因为在尝试从N+N尺寸导入源模块的数据时,这将是有用的,以将其映射到具有n个尺寸的目标模块。在这里“ n”> 1。

The content in this article has not been evaluated for all Anaplan implementations and may not be recommended for your specific situation.
在应用本文中的任何想法或步骤之前,请咨询您的内部管理员。
Comments

总结这个很棒的最佳实践的好工作@misbah

很棒的文章@misbah, I really like the fact about "getting rid of the warnings". Sometimes, we let it slip as being "normal", but a creative thinking cap on can fix anything like that.

很棒的文章bro and so much detailed with screenshots.:竖起大拇指:

很棒的文章@misbah

Version history
Last update:
11-03-2020上午10:39
Updated by:
About the Author
标签(1)