suitable graph to visualize shift wise ordinal data using PowerBi(使用 PowerBi 可视化移位顺序数据的合适图表)
问题描述
需要为 Shift-wise 状态变化数据绘制图表.我使用 python Jupyter 绘制堆栈条形图.
jupyter 的示例数据集和输出如下所示.
输出:
但是当我要使用 powerbi 堆栈条形图来绘制它时.它显示聚合,而不是实际值.
例如:03-01 Day First START >STOPPED>RUNNING>STOPPED 并继续......在 powerBi 堆栈栏中显示 STOPPED、RUNNING 和其他状态(聚合值(总和)而不是实际值与顺序).有什么方法可以得到与 jupyter notebook 相同的输出.
非常感谢您的支持!!!
您需要为每个数据点创建一个具有唯一值的列,例如日期/时间值.然后将该值用于堆积柱形图的图例中.
当然,这不会对您的状态值进行颜色编码,因此这也不是理想的解决方案.
但是如果 Python 可以生成你想要的图表,你为什么不在 Power BI 中使用它呢??
Need to plot chart for Shift-wise state change data. I plot the stack bar chart using python Jupyter.
Sample dataset and output from jupyter is shown below.
Output:
But when I'm going to plot this using powerbi Stack bar chart. It shows aggregates ,instead of real values.
Ex: 03-01 Day First START >STOPPED> RUNNING>STOPPED and goes on...... In powerBi stack bar shows STOPPED,RUNNING and other states' (aggregate values(summations) instead of real values with order). Is there any way to get the same output as i have got from jupyter notebook.?
Really appreciate your support!!!
You will need a column with unique values for each data point, like a date/time value. Then use that value into the Legend of the stacked column chart.
That, of course, will not colour code your state values, so that's also not an ideal solution.
But if Python can produce the chart you want, why don't you use that in Power BI??
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals
这篇关于使用 PowerBi 可视化移位顺序数据的合适图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 PowerBi 可视化移位顺序数据的合适图表


- 如何在 Python 的元组列表中对每个元组中的第一个值求和? 2022-01-01
- 使用Heroku上托管的Selenium登录Instagram时,找不到元素';用户名'; 2022-01-01
- 如何将一个类的函数分成多个文件? 2022-01-01
- 如何在 python3 中将 OrderedDict 转换为常规字典 2022-01-01
- 分析异常:路径不存在:dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; 2022-01-01
- python check_output 失败,退出状态为 1,但 Popen 适用于相同的命令 2022-01-01
- 沿轴计算直方图 2022-01-01
- padding='same' 转换为 PyTorch padding=# 2022-01-01
- python-m http.server 443--使用SSL? 2022-01-01
- pytorch 中的自适应池是如何工作的? 2022-07-12