Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Example data is below.
| Date | Item |
| 1/5/2024 | XX |
| 1/20/2024 | XX |
| 1/20/2024 | XX |
| 1/15/2024 | XY |
| 1/20/2024 | XY |
| 1/25/2024 | XY |
I am trying to group by Item and compare the original date (earliest date) with the modified date to see how much delay was caused.
How can I group by Item and compare the dates? Thanks
Ideally, a third column would have something like this (in days):
| Difference |
| blank() |
| 15 |
| 0 |
| blank() |
| 5 |
| 5 |
Solved! Go to Solution.
Here's a Power Query solution:
1. Group by Item and add columns Min Date and All (all rows):
2. Click the double arrow on the All column and select Date:
3. Add a custom column Delay:
Duration.Days([Date] - [Min Date])
4. Result:
Proud to be a Super User!
Here's a Power Query solution:
1. Group by Item and add columns Min Date and All (all rows):
2. Click the double arrow on the All column and select Date:
3. Add a custom column Delay:
Duration.Days([Date] - [Min Date])
4. Result:
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 106 | |
| 65 | |
| 36 | |
| 36 |