简体   繁体   中英

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. 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. (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.

Is there a way to do such a thing? TIA! Dennis

I think you have 2 options:

  1. Add a column in the model layer using the DAX LOOKUPVALUE function: 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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