Forum Discussion

bonjourposte's avatar
bonjourposte
Icon for Helper V rankHelper V
2 years ago
Solved

How to join two virtual tables in DAX

My boss gave me some SQL code to generate a very specific set of filtered information, and I'm translating it into DAX.  We need to create two virtual tables (T1 and T2) out of one (LOANHIST).     ...
  • MattAllington's avatar
    MattAllington
    2 years ago

    You don't need to/shouldn't copy the table twice. You should load the table once containing all the data. All of it, not just the 2 months you are interested in, but all history you may ever need for reporting. Then join to a calendar table containing all dates for the superset of dates including dates with no sales.