简体   繁体   English

Power BI 中的清理数据

[英]Clean Data in Power BI

i need help on cleaning this data.我需要清理这些数据的帮助。 Currently I've no idea to clean this kind of data.目前我不知道清理这种数据。 I want to clean based on month and total per supplier.我想根据每个供应商的月份和总数进行清洁。 Thanks谢谢

在此处输入图像描述

  1. Select the first 2 columns [No] and [Supplier] Select 前 2 列 [No] 和 [Supplier]
  2. On the tab Transform drop down Unpivot Columns and click on Unpipot Other Columns在选项卡上Transform下拉Unpivot Columns并单击Unpipot Other Columns

This converts your wide pivot table into a long, stacked format that is ideal for further processing.这会将您的宽 pivot 表格转换为长的堆叠格式,非常适合进一步处理。

在此处输入图像描述

Another way you can achieve this is您可以实现此目的的另一种方法是

  1. Select all the date columns. Select 所有日期列。
  2. Click on the transform tab, under any column section, click on unpivot only selected columns单击转换选项卡,在任何列部分下,单击仅取消透视选定的列
  3. Kindly rename the Attribute column to date请将 Attribute 列重命名为 date

If you need to split the date column into month and year 4. on the transform tab, under the text column section, click on Split Column , select "by delimiter" on the dialog box, select split at the left-most delimiter and click ok.如果您需要将日期列拆分为月份和年份 4. 在转换选项卡上,在文本列部分下,单击拆分列,对话框中的 select“按分隔符”,select 在最左侧的分隔符处拆分并单击好的。

You will have your month and year columns as shown below您将拥有月份和年份列,如下所示在此处输入图像描述

if your value column holds figure for amount/money you can transform the data type and replace the null values with zero using the replace values function when you right-click on the values column.如果您的值列包含金额/货币的数字,您可以转换数据类型并在右键单击值列时使用替换值 function 将 null 值替换为零。

I hope this helps我希望这有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM