Forum Discussion
Jolyon
9 years agoHelper III
how to use date form different tables (Direct Query)?
Hi all, need your help please. I have two tables,which are drawn with direct query to Power BI: Table 1 with columns Tickets Firm A, date and etc. Table 2 with Tickets Firm B, date and other colu...
- Anonymous9 years ago
Hi Jolyon,
Yes. You would need to create the new table in CRM, as we are not able to use "New table" feature in DirectQuery Mode.
Thanks,
Lydia Zhang
PavelR
9 years agoSolution Specialist
Hi Jolyon,
I agree with solution described by BetterCallFrank.
To solve CALENDAR function parameters, just include IF formula condition to input MIN and MAX dates from both table. Something like depicted below:
DateTable = CALENDAR(IF(MIN(Table2[Column1])>MIN(Table1[Column1]);MIN(Table1[Column1]);MIN(Table2[Column1]));IF(MAX(Table2[Column1])>MAX(Table1[Column1]);MAX(Table2[Column1]);MAX(Table1[Column1])))
Regards.
Pavel