Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I have a project dashboard I am setting up and i am struggling to get start and end dates on 1 row.
Below is a simpified version of my issue where I have mutliple lines for the same task;
Task Start date End Date
| ABC | 1/07/2021 | 31/07/2021 |
| ABC | 1/08/2021 | 31/08/2021 |
| ABC | 1/09/2021 | 30/09/2021 |
| ABCD | 1/09/2021 | 30/09/2021 |
What I would like to achive is having one line per task, something more inline the table below
| TASK | START DATE | END DATE |
| ABC | 1/07/2021 | 30/09/2021 |
| ABCD | 1/09/2021 | 30/09/2021 |
How do I achieve this in Power query?
Thanks In advance
Solved! Go to Solution.
You can use the Group By feature in the query editor. Group by the Task column and then add two aggregations with the min of the Start date column and max of the End date column.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
So simple i didn't even think of that, works like a charm. Thank you @mahoneypat
You can use the Group By feature in the query editor. Group by the Task column and then add two aggregations with the min of the Start date column and max of the End date column.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |