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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I have a Power Query which produces an expanded list of information and in that information I have dates from the start and end date columns in my table. Im trying to creat a formula to work and I cant figure out how.
if EndDate - StarDate > 2 years if yes then mark column G as continue else - start
This means that the end date and Start date is greater than 2 years if yes then mark or edit a specific column as Continue or Start
Any ideas greatly appreciated!
Solved! Go to Solution.
an you create a custom column with the formula:
if Duration.Days([endDate] - [startDate]) > (365 * 2) then "continue" else "start"
and then filter the ones that you need.
an you create a custom column with the formula:
if Duration.Days([endDate] - [startDate]) > (365 * 2) then "continue" else "start"
and then filter the ones that you need.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 9 | |
| 7 | |
| 6 |