Question: how to do a ytd calculation in tableau?
Answer: Select Analysis > Create Calculated Field.
Name the field YTD Sales, enter the following calculation, then click OK: [Order Date] <= TODAY() AND. DATETRUNC( "year", [Order Date]) = DATETRUNC("year", TODAY() )
Drag YTD onto the filter shelf and select "True"