If I have two columns Start Date and End Date. Start Date is 08.01.2023 and 08.09.2023…
Jump to turn (6)
- 1If I have two columns Start Date and End Date. Start Date is 08.01.2023 and 08.0
- 2Provide an example
- 3If I want to add a row to original table where Start Date is 08.06.2023 and End
- 4Yes, you are write. But I do not need to mannualy add this row. You should use c
- 5No, the UpdatedTable should include only three rows. See the otput | Start Date
- 6If I have two columns Start Date and End Date. Start Date is 08.01.2023, 08.09.2
- User
If I have two columns Start Date and End Date. Start Date is 08.01.2023 and 08.09.2023 and End Date is 08.05.2023 and 18.12.2023, respectively. How to find the periods between these dates that is 08.06.2023 and 08.08.2023 using DAX?
- Assistant
To find the periods between the Start Date and End Date, you can use the following DAX formula:
codePeriods = VAR MinDate = MIN('Table'[Start Date]) VAR MaxDate = MAX('Table'[End Date]) RETURN GENERATESERIES(MinDate, MaxDate, 1) EXCEPT 'Table'Assuming you have a table named 'Table' with the columns 'Start Date' and 'End Date', this formula calculates the minimum and maximum dates from those columns. It then uses the GENERATESERIES function to create a table of dates between the minimum and maximum dates, with a step size of 1 day. Finally, it uses the EXCEPT function to remove any dates that already exist in the 'Table'.