Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
This is my data table, I want to convert the table from start and finish date, into vertical dates.
I am not sure if the technical term to do this is called Pivoting.
Example:
Line 126, Task ID A3060 ,, Start date: 12/3/2018 ,, Finish date: 12/20/2018
Want to change that into:
A3060 12/3/2018
A3060 12/4/2018
A3060 12/5/2018
...until
A3060 12/20/2018
Also Most of the Task ID have Start and Finish dates, and some have only Start date or Finish date, not sure how that would affect
Solved! Go to Solution.
@Anonymous
you can create a date table
Date = CALENDAR(min('Table'[Start]),max('Table'[End]))
then you can use DAX to create a new table
Table 2 = GENERATE('Table',FILTER('Date','Table'[End]>='Date'[Date]&&'Table'[Start]<='Date'[Date]))
I haven't tried this before, so I did test for blank for start date and end date.
It looks like test1 does not show up in the Table2 and test 2's start date will be the minimum date of date table.
please see the attachment
Proud to be a Super User!
@Anonymous
you can create a date table
Date = CALENDAR(min('Table'[Start]),max('Table'[End]))
then you can use DAX to create a new table
Table 2 = GENERATE('Table',FILTER('Date','Table'[End]>='Date'[Date]&&'Table'[Start]<='Date'[Date]))
I haven't tried this before, so I did test for blank for start date and end date.
It looks like test1 does not show up in the Table2 and test 2's start date will be the minimum date of date table.
please see the attachment
Proud to be a Super User!
@Anonymous , Refer if the attached file after signature can help you.
@amitchandak , Thank for the help.. The Dax you shared helped me in another project
@amitchandak , Thanks I took a dive in to the file you had shared with me, it has interesting result
can we do this to the source table itself,
Taking example of the data table you have, can we change the dates into list format between these two dates..
Change the above table itself to List type based on dates, For first value Start : 19-Mar-20, End: 1-Apr-20
ID | Date
1 19-Mar-20
1 20-Mar-20
1 21-Mar-20
.....
1 1-Apr-20
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |