根据年和月乘以列 [英] Multiply columns based on the Year and Month
本文介绍了根据年和月乘以列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下表格:
比特币价值
年 | 月 | 比特币价格 |
---|---|---|
2021 | 4 | $58,726.68 |
2021 | 3 | $49,619.64 |
钱包
日期 | 比特币数量 | 来自钱包 | 到钱包 |
---|---|---|---|
2021 年 4 月 6 日 | 20 | A | B |
2021 年 3 月 6 日 | 3 | B | C |
如何添加一列,取钱包日期列的年月,并将其与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 列Year 和 Month 添加到你的表钱包如下-
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屋!
查看全文