什么?

一种模型分析技术,使用您的Anaplan模型中进口到Excel的元数据,利用专用公式来识别感兴趣的终点项目

Why?

我们这样做,以便在尝试优化模型时拥有一些额外的信息来武装自己。它使我们可以查看每个行项目,将相同的规则应用于每个行,并突出显示任何违反某些规则的行项目。然后,我们可以过滤工作表,并查看我们认为首先要调查的订单项目;例如,我们强调的那些最有可能引起性能问题。

如何?

首先从模块的第三个选项卡(在“设置菜单”中找到)导出订单项“蓝图”。
Export as CSV (Grid.csv)

Markwarren_0-1655390353535.png

将其导入到Excel:

马克瓦伦_1-1655390665082.png

现在,我们可以开始格式化列,隐藏我们不感兴趣的列,并添加列以进行我们想要完成的分析。

Markwarren_0-1655391274508.png

作为一个例子,我们添加了一个公式列长度with the formula: =LEN(C2)
C2是我们从蓝图导入的公式列。


这是附件文件中的示例:

Formula Length
= Len(C2)
Text Format
= isnumber(查找(“文本”,b2))
Duplication (line items)
= if(c2 = $ c $ 2,0,countif(c:c,c2))
Duplication (formulas)
= if(c2 = $ c $ 2,0,countif(c:c,“*”&c2&“*”))
& count
= len(c2)-len(替代(C2,“&”,“”))
如果计数
=(len(c2)-len(替换(c2,“ if”,“”)))/len(“ if”)
Finditem
=ISNUMBER(SEARCH("FINDITEM(",C2))
CODE
=ISNUMBER(SEARCH(“CODE(",C2))
= isnumber(search(“等级(”,C2))
适用于计数
= len(n2)-len(替代(n2,“,”,“”)) + 1

Some of the columns we've added speak for themselves; for example, formula length and text format.
The FINDITEM, CODE, etc. are all the same formula, but use different search terms. Note the use of an open parenthesis in the search term to look for the start of a function.
Duplication looks for that formula (row) in all the other rows, and shows how many times that exact formula is repeated in the model.
重复(公式)是一种类似的搜索,但使用通配符在其他行中查找该文本。该示例正在寻找空白,并显示公式中有多少个订单项使用空白。
“&Count”的公式显示了该角色的有多少个实例出现在公式中,并将在名称中显示出任何字符。最好搜索“&”(带有空格)。
“如果计数”公式类似于“&count”,但我们需要添加/LEN("IF ")在替补中考虑多个字符。确保两个部分的搜索术语文本相同。

例子

Markwarren_0-16564129777775.png

In this image, you can see the formula代码(sf_nbr_opportunity)is duplicated 18 times and then used a further 3 times in other line items (21 minus 18). This formula only applies to the listsf_nbr_opportunity, so it should be put in to a list properties module (system module) dimensioned by only that dimension. Then this formula is calculated at the correct dimension in a module that other line items can reference when needed. The cell count of this line item is 35,103; so we're reducing the cells calculated for this from631,854(18 * 35103)至35,103, A94%减少。
我们现在还需要所有其他订单项目吗?
可以将它们删除,并将其更改为我们的新属性模块的任何引用吗?

结束思想

I'm sure many of you are doing this already. If so then please share details on how you do it and what you look for.
Once you have a format, you'll find you can quickly apply this to new model blueprints. You could even drive the analysis page from a second sheet to make importing new blueprints easier.

You may even want to incorporate the results of a model open analysis file into this, looking up a line item and module name so that you can sort the blueprint by the performance data and match up the analysis timings to the formulas.

试图优化性能时,请使用它。即使寻找重复的配方也是一个很好的开始。

Share your blueprint analysis formulas in the comments and we can grow this into something really useful!

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

@MarkWarrenGreat article. For duplicates one thing I add is the summary as well in system modules. Occasionally, I need to create a Boolean filter that uses the same formula but has a different summary method, usually on time. For example, sometimes I want to see weeks and months, sometimes just weeks.

这是要添加的新列;计算映射数量的总和X[SUM:Y, SUM:Z]would return 2.

= ifError((len(c3,find,find(“ [sum:”,c3),find(“]”,c3,find(“ [sum:“,c3))) -  find(“ [sum:”,c3,c3)) -  len(替换(中间(C3,find)(“ [sum:”,c3),find(“]”,c3,find(“ [sum:“,c3))) -  find(“ [sum:sum:“”),c3)),“ sum:”,“”))/ len(“ sum:”),0)


看看这种重复,此公式需要优化!:face_with_tears_of_joy:
这仅在公式中具有第一个总和函数。
Maybe someone can improve on this? Maybe it would need VBA?

你好@MarkWarren我尝试了您在这里提到的最后一个示例代码(item(listName))我有一个带有 +3M单元格数的行项目,因此我创建了一个只有1个维度(myList)的新模块,然后我引用了该行项目而不是使用该公式,但是单元格计数完全相同: +3M单元格,我期望减少细胞计数,但没有发生。这里有什么想法吗?我应该尝试一些不同的东西吗?

@Johansmith您的目标行项目(引用您的代码行项目)是否需要其他维度?
如果您将该代码添加到另一个代码中,则很可能会这样做。
如果您在公式中使用或在保存的视图中使用它,则只需要引用原始版本(您创建的新的)(您创建的新版本)。

进行这种变化的目的是减少计算公式的细胞计数,还要减少该公式的任何重复。计算一次并参考多次的便宜得多。

如果您需要更多帮助,请随时向我发送屏幕截图。

Version history
Last update:
07-20-202204:08 pm
Updated by:
关于作者
标签(2)
依恋s