使用行值匹配列名,并沿PowerBi的同一行从列中获取值
这都是通过PowerBi上的Power查询。
看起来像这样的桌子:
我目前有一张 | 车辆 | 拖拉机 | 汽车 | 货车 |
---|---|---|---|---|
317968 | CAR | 27/03/2022 | 21/03/2023 | 21/03/2023 |
312388 | LORRY | 21/01/2024 | 16/08/2021 | 11/07/202222222 |
316671 | CAR | 18/09/2022 | 24/12/2023 | 18/09/2023 |
318328 | 拖拉机 | 12/01/2024 | 03/03/03/2023 | 21/08/2024 |
328543 | 拖拉机 | 19/08/2022 15/11/2022 | 15/11/2022 | 21/03/03/03/03/03/03/03/03/03/03/03/03 /03/03/ 2023 |
我正在考虑创建一个新的列,该列仅从与车辆列返回类似的车辆列的列中的日期:
号码 | 车辆 | 拖拉机 | 汽车 | Lorry | 新列 |
---|---|---|---|---|---|
317968 | CAR | 27/03/2022 | 21/03/2023 | 21/03/ 2023 | 21/03/2023 |
312388 | LORRY | 21/01/2024 | 16/08/2021 | 11/07/2022 | 11/07/2022 |
316671 | CAR | 18/09/09/2022 | 24/12/12/2023 | 24/12/2023/12/2023/2023/2023/2023/2023/2023 | 18/09/09/09/09/2023 |
318328 | 拖拉机 | 12/01/2024 | 03/03/2023 | 21/08/2024 | 12/01/2024 |
328543 | 拖拉机 | 19/08/2022 | 15/11/11/2022 | 21/03/2023/2023 | 19/08/202222222 |
This is all through Power Query on PowerBI.
I currently have a table that looks something like this:
Number | Vehicle | Tractor | Car | Lorry |
---|---|---|---|---|
317968 | Car | 27/03/2022 | 21/03/2023 | 21/03/2023 |
312388 | Lorry | 21/01/2024 | 16/08/2021 | 11/07/2022 |
316671 | Car | 18/09/2022 | 24/12/2023 | 18/09/2023 |
318328 | Tractor | 12/01/2024 | 03/03/2023 | 21/08/2024 |
328543 | Tractor | 19/08/2022 | 15/11/2022 | 21/03/2023 |
I am looking at creating a new column which only takes the date from the column that matches the Vehicle column returning something like this:
Number | Vehicle | Tractor | Car | Lorry | New Column |
---|---|---|---|---|---|
317968 | Car | 27/03/2022 | 21/03/2023 | 21/03/2023 | 21/03/2023 |
312388 | Lorry | 21/01/2024 | 16/08/2021 | 11/07/2022 | 11/07/2022 |
316671 | Car | 18/09/2022 | 24/12/2023 | 18/09/2023 | 24/12/2023 |
318328 | Tractor | 12/01/2024 | 03/03/2023 | 21/08/2024 | 12/01/2024 |
328543 | Tractor | 19/08/2022 | 15/11/2022 | 21/03/2023 | 19/08/2022 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
record.field
函数来引用名称列的列:You can reference a column by name, using the
Record.Field
function: