Forum Discussion

hangell's avatar
hangell
Frequent Visitor
3 years ago

Using query results to build date table using CALENDAR()

I have used this query here https://www.biinsight.com/finding-minimum-date-and-maximum-date-across-all-tables-in-power-query-in-power-bi-and-excel/ and it works, but I cannot work out how to use the results to generate a date table using the CALENDAR() function. 

EDIT: I have 4 tables which I want to find out the Earliest and Latest date from as a whole, this is my reason for using this query, if there is a better way please let me know. Based on amitchandak reply it is not possible to use the results of the query, so how would I go about building a Date table based on the Earliest an Latest dates found in the 4 columns in these 4 tables (1 specific date column per table).

I currently generate a date table using CALENDAR(DATE(2020,1,1),DATE(2025,1,1)) , I would like to use the results of the query so the date table accurately reflects the dates in the Model but have no experience using query results in DAX. 

 

Your help is much appreciated.

 

Thanks 

2 Replies