如何在条形图 PowerBI 上获取错误栏?

How to get error bars on barchart PowerBI?

我想要这样的条形图:

每一列的误差条应该显示分散(我在其中一列中计算了它)。顶线显示是否存在显着差异。现在我只得到了这样的图:

我在 PowerBI Desktop 中使用简单的聚类条形图。也许有另一个视觉效果或另一个可以做到的程序?也许 Python 不知何故?

A 提到 here 您可以使用 python 中的 matplotlib 来做到这一点。举个例子:

import numpy as np
import pylab as plt

data       = np.array(np.random.rand(1000))
y,binEdges = np.histogram(data,bins=10)
bincenters = 0.5*(binEdges[1:]+binEdges[:-1])
menStd     = np.sqrt(y)
width      = 0.05
plt.bar(bincenters, y, width=width, color='r', yerr=menStd)
plt.show()