I am creating a calculated table inside my model with the following code
=
VAR TodaysDate = MAX(factSalesDetails[Invoice_Date])
VAR YearStart = CALCULATE(STARTOFYEAR(factSalesDetails[Invoice_Date]), YEAR(factSalesDetails[Invoice_Date]) = YEAR(TodaysDate))
VAR QuarterStart = CALCULATE(STARTOFQUARTER(factSalesDetails[Invoice_Date]), YEAR(factSalesDetails[Invoice_Date]) = YEAR(TodaysDate), QUARTER(factSalesDetails[Invoice_Date]) = QUARTER(TodaysDate))
VAR MonthStart = CALCULATE(STARTOFMONTH(factSalesDetails[Invoice_Date]), YEAR(factSalesDetails[Invoice_Date]) = YEAR(TodaysDate), MONTH(factSalesDetails[Invoice_Date]) = MONTH(TodaysDate))
VAR RESULT =
UNION (
ADDCOLUMNS(
CALENDAR(YearStart, TodaysDate),
"Selection", "YTD"
),
ADDCOLUMNS(
CALENDAR(QuarterStart, TodaysDate),
"Selection", "QTD"
),
ADDCOLUMNS(
CALENDAR(MonthStart, TodaysDate),
"Selection", "MTD"
)
)
RETURN RESULT
It returns the table properly as shown
However when trying to deploy, it says 0 rows transferred, but there is no other error. 
I am using SQL Server 2019 and Visual Studio 2019 with latest SSDT plugin.
I changed the Processing Option to "Full" but that didn't make any difference.
What is the problem here?