Forum Discussion

razmochaev's avatar
razmochaev
Helper I
6 years ago
Solved

DAX Creating Virtual table with columns computed from multiple fact tables

Hi everyone, I'm struggling with the following problem: I have two fact tables with sales data and several dimensions tables (Products and Dates). I need to create a virtual table with the followin...
  • AlB's avatar
    AlB
    6 years ago

    razmochaev 

    I think it would be best to create not a virtual but a physical table that combines the two tables you now have. It will save you a lot of problems and time, I believe.

    If you do want to find the previous date in the virtual table, you can do something like

    MAXX(FILTER(VirtualTable, [Date_] < currentdate_),[Date_])

    Please mark the question solved when done and consider giving kudos if posts are helpful.

     Cheers