Forum Discussion
ibrahimsharaf
10 years agoMicrosoft Employee
Getting all dates between 2 dates
Hello guys, I have 2 columns named, start date and end date, I want to create a column which contains all the dates between the after mentioned dates, for example
Phil_Seamark
8 years agoMicrosoft Employee
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])ctedesco3307
4 years agoResolver 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 agoSuper User
Hi,
Share some data and show the expected result.
- ctedesco33074 years agoResolver II
Can soemone share the syntax to get those extra columns? this works perfect but I need those extra columns as well. Thank you.