Forum Discussion
DAX Creating Virtual table with columns computed from multiple fact tables
- 6 years ago
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
But how can I compute the "Previous Sale Date" column of this virtual table. I cannot use CALCULATE(MAX(UnionTable[Sale date]),...) since I cannot use Virtual table's columns as a column reference...
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
- razmochaev6 years agoHelper I
Thank you for the advice! I guess it'll be easier.
- PBIDevFW2 years agoFrequent Visitor
This is not the answer. He clearly said he needed a virtual table. Therefore, the solutions should be based on his use case. In enterprise environments with live connect, you can't create physical tables. Probably why he wants a virtual table, so solutions should be based on virtual, not physical, tables.