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