How to get average from a measure in Power BI desktop

馋奶兔 提交于 2019-12-01 08:57:08

问题


In my data source I have column Quoted and Submitted.

Dividing the Sum(Quoted) by SUM(Submitted) gives us Sub to Quote ratio.

So I have created a measure that divides Quoted/Submitted.

Sub to Quote = DIVIDE([Total Quoted], [Total Submitted])

Now, how can I simply have Average of that ratio?

So instead of 9%, I need to see 8.18%

.PBIX file can be accessed here:

https://www.dropbox.com/s/ug932qjju7zahfs/ClearanceDateNewWithCatalytic1.pbix?dl=0


回答1:


I would try something like this:

Sub to Quote =
AVERAGEX(
    SUMMARIZE(dim_Date,
        dim_Date[Qtr Year],
        "Average", DIVIDE( [Total Quoted], [Total Submitted] )
    ),
    [Average]
)

This summarizes your table to get the average for each quarter and then averages those averages.

Note: This returns 8.15% rather than 8.18%. I'm guessing this is just a rounding difference though.



来源:https://stackoverflow.com/questions/52617947/how-to-get-average-from-a-measure-in-power-bi-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!