Forum Discussion
Getting all dates between 2 dates
Here is a DAX based solution. This is a calculated table and just replace the Table3 with the name of your table.
New Table =
SELECTCOLUMNS(
FILTER(
CROSSJOIN('Table3',CALENDARAUTO()),
'Table3'[EndDate] >= [Date]
&& 'Table3'[StartDate] <= [Date]
),
"Date",[Date])- Ashish_Mathur9 years ago
Super User
Hi Phil,
If i am using the PowerPivot in Excel, where exactly do i have to write this formula. How does one generate a table in the PowerPivot?
- Phil_Seamark9 years ago
Microsoft Employee
Sorry, that code is more for Power BI Desktop or SSAS Tabular where you can create calculated tables in DAX. I recommend you follow ImkeF always excellent suggestions :)
- Ashish_Mathur9 years ago
Super User
Thank you.
- ctedesco33074 years ago
Resolver II
This above solution is great - is there a way to get more columns in the calculated table from 'Table 3' so it's not just the one column? - Thank you
- Ashish_Mathur4 years ago
Super User
Hi,
Share some data and show the expected result.
- ctedesco33074 years ago
Resolver II
Can soemone share the syntax to get those extra columns? this works perfect but I need those extra columns as well. Thank you.