Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a table like this -
Title | Request Start Date | Request End Date | Targeted Start Date | Targeted End Date | Actual Start Date | Actual End Date |
Item 1 | 7/30/2021 | 9/30/2021 | 7/30/2021 | 9/30/2021 | 5/30/2021 | 7/30/2021 |
Item 2 | 7/30/2021 | 9/30/2021 | 7/30/2021 | 9/30/2021 | 5/30/2021 | 7/30/2021 |
I need to transform it to something like this
Title | Date Category | Start Date | End Date |
Item 1 | Request Date | 7/30/2021 | 9/30/2021 |
Item 1 | Targeted Date | 7/30/2021 | 9/30/2021 |
Item 1 | Actual Date | 5/30/2021 | 7/30/2021 |
Item 2 | Request Date | 7/30/2021 | 9/30/2021 |
Item 2 | Targeted Date | 7/30/2021 | 9/30/2021 |
Item 2 | Actual Date | 5/30/2021 | 7/30/2021 |
I tried unpivoting all the start date columns and the end date columns from the first table but that gives me a cartesian product. IS there a way to do thi
Solved! Go to Solution.
Select the first column. Unpivot the othe columns.
Split the centre column (by space, once as far left as possible)
Select the new column that has 'start date' and 'end date' in it. Pivot this column. Choose Value(the date column) as Values. Choose Don't Aggregate from the advanced.
That should be it.
Perfect. Thank you.
Select the first column. Unpivot the othe columns.
Split the centre column (by space, once as far left as possible)
Select the new column that has 'start date' and 'end date' in it. Pivot this column. Choose Value(the date column) as Values. Choose Don't Aggregate from the advanced.
That should be it.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |