使用数据分段可视化仅显示月份和年份

Showing only Month and Year using the Data Segmentation visualization

我在 Power Bi 中使用数据分段可视化来使用日期列过滤页面,但它显示了整个日期(日、月、年),我只需要显示月和年,是吗过滤掉一天的方法?

您可以在 PowerBI 桌面中创建一个新列并使用它。

在主页功能区的“计算”部分下单击“新建列”,然后输入 like

MonthYear = Query1[CreatedDate].[Month] & "-" & Query1[CreatedDate].[Year]

其中 CreatedDate 是您当前的日期字段。然后你可以使用 MonthYear 列来过滤。

将日期添加到 Viz 时,右键单击该字段,您可以取消选择不需要的日期项。