根据年和月乘以列 [英] Multiply columns based on the Year and Month

查看:51
本文介绍了根据年和月乘以列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下表格:

比特币价值

<头>
比特币价格
20214$58,726.68
20213$49,619.64

钱包

<头>
日期比特币数量来自钱包到钱包
2021 年 4 月 6 日20AB
2021 年 3 月 6 日3BC

如何添加一列,取钱包日期列的年月,并将其与BitcoinValue表的年月列匹配,并产生(20 * $58,872.68)对于第一行?谢谢.

What can I do to add a column that takes the year and month of the date column of wallet and match it to the year and month columns of BitcoinValue table, and yield (20 * $58,872.68) for row one? Thanks.

推荐答案

转到 Power Query Editor 将 2 列YearMonth 添加到你的表钱包如下-

Go to Power Query Editor add 2 column Year and Month to your table Wallet as below-

Year = Date.Year([Date])

Month = Date.Month([Date])

现在,使用列年和月将您的钱包表与 BitcoinValue 表连接起来(左).您现在将在 BitcoinValue 的表 Wallet 中拥有所有必要的列/值.

Now, join (left) your wallet table with BitcoinValue table using column Year and Month. You will have all necessary columns/value now in table Wallet from BitcoinValue.

这篇关于根据年和月乘以列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆