基于年份和月份的列相乘 [英] Multiply columns based on the Year and Month

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

问题描述

我有以下表格:

比特币价值

<头>
年份比特币价格
20214$58,726.68
2021349,619.64 美元

钱包

<头>
日期比特币数量来自钱包到钱包
2021 年 4 月 6 日20一个B
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天全站免登陆