使用 PowerBi 可视化移位顺序数据的合适图表

suitable graph to visualize shift wise ordinal data using PowerBi(使用 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 可视化移位顺序数据的合适图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

python arbitrarily incrementing an iterator inside a loop(python在循环内任意递增迭代器)
Joining a set of ordered-integer yielding Python iterators(加入一组产生 Python 迭代器的有序整数)
Iterating over dictionary items(), values(), keys() in Python 3(在 Python 3 中迭代字典 items()、values()、keys())
What is the Perl version of a Python iterator?(Python 迭代器的 Perl 版本是什么?)
How to create a generator/iterator with the Python C API?(如何使用 Python C API 创建生成器/迭代器?)
Python generator behaviour(Python 生成器行为)