Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

merge two query

Hello All ,  So i am having some trouble merging two tables in power bi    fist query consist of portfolio that i receve every quarter with 4 columns (Date, name of ptf, name of stock, quantit...
  • nandic's avatar
    nandic
    5 years ago

    Ideally it would be to have Query2 (historical data) for each date. Query1 (portfolio) may not be on each date, but for each date where it occurs, the same combination (stock, date) should be available in history table. This way all data will be matched.
    And in this case you might use Inner Join to return only matched data. If you need all data (even without join) you can use Outer join, but then there might be lots of nulls.