简体   繁体   English

Power BI:如何合并两个表(已加载表和已创建表)

[英]Power BI: How to merge two tables (loaded plus created table)

I'm struggling with what I assume is a calculated table in Power BI Desktop. 我正在为Power BI Desktop中的计算表而苦苦挣扎。 I need to somehow connect my database loaded Accounts table with a manually created Progress table (with some fixed data), so that each row in Accounts basically has a calculated column which is the resulting Progress table for that row. 我需要以某种方式将数据库加载的Accounts表与手动创建的Progress表(具有一些固定数据)连接起来,以便Accounts中的每一行基本上都有一个计算列,该列是该行的结果Progress表。 (Hope that makes sense). (希望如此)。

[This is the Progress table 1 The calculated columns in the Progress table should use data from the related Accounts row to give an overview of where the Account is now, how long it took and the likely future time frames to reach the next levels of progress. [这是进度表1进度表中的计算列应使用相关“帐户”行中的数据来概述该帐户现在的位置,花费了多长时间以及达到下一个进度级别所需的未来时间范围。

Is there a way to do such a thing? 有办法做这种事吗? TIA! TIA! Dennis 丹尼斯

I think you have 2 options: 我认为您有2种选择:

  1. Add a column in the model layer using the DAX LOOKUPVALUE function: https://msdn.microsoft.com/en-us/library/gg492170.aspx 使用DAX LOOKUPVALUE函数在模型层中添加一列: https ://msdn.microsoft.com/en-us/library/gg492170.aspx
  2. From the Edit Queries window, use the Merge Queries button, then Expand the resulting NewColumn. 在“编辑查询”窗口中,使用“合并查询”按钮,然后展开生成的NewColumn。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM