如何将power bi中的查询与2个主键合并 [英] How to merge queries in power bi with 2 primary keys

查看:205
本文介绍了如何将power bi中的查询与2个主键合并的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

power bi中主键为2列组合时如何合并两个查询.

How do we merge two queries in power bi when the primary key is a combination of 2 columns.

例如我有 2 张桌子

表A:

year
cost center
col a
col b
col c

表 B:

year
cost center
col x
col y
col z

两列中的主键是第一两列的组合.我如何合并这两个查询?

The primary key in both the columns is a combination of the 1st two columns. How do i merge these two queries?

推荐答案

当您使用 GUI 合并查询时,您可以按住 Ctrl 从每个表中选择多个列.(确保在两个表上以相同的顺序选择它们.)

When you merge the queries using the GUI, you can hold down Ctrl to select multiple columns from each table. (Make sure you select them in the same order on both tables.)

这篇关于如何将power bi中的查询与2个主键合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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