首页 > 解决方案 > 仅按年显示选定的月份(YTD)

问题描述

这是 Tableau 中所有月份的 YTD 表。我只需要显示 2020 年 9 月和 2021 年。当我拖动月份(9 月)进行过滤时,它会显示错误值。我怎样才能做到这一点?在此处输入图像描述

标签: tableau-apitableau-desktop

解决方案


Does your filter have to be dynamic? I mean if you open your dashboard today do you have to see October?

If yes you can simply create a calculated filed like

DATEPART('month', [MyDimensionDate])=DATEPART('month', TODAY())

and drag it to the filter panel, then select TRUE.


推荐阅读