0

Is it possible to create a data model (on which I can run a DAX query) from the output of a DAX query? (both tables being autoupdated from a db backend, not static - so no copy paste or convert to excel table)?

My requirement is this: I have a table, say Orders, and I need to calculate the percentile of sales from a particular region. For this, my approach would be -

First calculate a table with the =SUMMARIZE function, creating a table grouped by regions, and then implementing the percentile algorithm on it (by ranking it and putting it into percentile buckets - there are some articles on the net on how to do that, since DAX doesnt have a percentile function). For this to happen, I need to create the intermediate live table from the SUMMARIZE function and put it an excel sheet. Then I need to run the rank function on the new table (assuming it can be done).

Is this possible?

4

2 回答 2

0

sargeMonkey,在常规数据透视表和电源数据透视表中都可以使用“good old” Show Values As选项:

在此处输入图像描述

这不是最快的解决方案吗?

于 2014-08-21T14:57:10.970 回答
0

所以,我找到了一个解决方法: http ://www.powerpivotblog.nl/implementing-histograms-in-excel-2013-using-dax-query-tables-and-powerpivot/

感谢卡斯帕。

所以总而言之,我们创建了一个由 DAX 查询驱动的 Excel 表,这样我就可以在 Excel 中使用百分位函数。

这是在 Excel 中使用实时表的一种很好的通用方法。

于 2014-08-20T20:23:58.253 回答