I don’t know if you need others WHERE conditions (because you mention “active projects”), but for the main question try this:
```dataview
TABLE dateformat(deadline, "yyyy.MM.dd") AS "Next 30 days"
WHERE deadline - date(today) <= dur(30 days)
SORT deadline ASC
```
```dataview
TABLE dateformat(deadline, "yyyy.MM.dd") AS "Next 30 days"
WHERE deadline - date(today) <= dur(1 month)
SORT deadline ASC
```