tableau 计算销售额函数TOTAL(SUM([Filtered Sales]))
1.过滤销售额计算字段 (Filtered Sales
):
IF [Month (Sales1)] >= [sales_start__day] AND [Month (Sales1)] <= [sales_end_day] THEN [Amount (Sales1)] ELSE 0 END
2.使用 TOTAL
函数计算总和 (Total Sum Sales
):
TOTAL(SUM([Filtered Sales]))