Qlik Sense 中如何选择今年的时间,measure 显示去年的数字

比如这里我在

[trip_flight_date.autoCalendar.YearMonth]

中选择2025-Oct, 2025-Nov。 我却要在Measure 中直接显示2024-Oct, 2024-Nov 的数字。

Sum(
{< [trip_flight_date.autoCalendar.YearMonth] = {$(= Concat( DISTINCT chr(39)&Date( AddMonths( Date#([trip_flight_date.autoCalendar.YearMonth],'YYYY-MMM'), -12 ), 'YYYY-MMM' )&chr(39), ',' ) )} >}
od_pax
)

最主要的是以下这段。

Concat(
DISTINCT
chr(39)&Date(
AddMonths(
Date#([trip_flight_date.autoCalendar.YearMonth],'YYYY-MMM'),
-12
),
'YYYY-MMM'
)&chr(39),
','
)

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

微信扫一扫,分享到朋友圈

Qlik Sense 中如何选择今年的时间,measure 显示去年的数字
返回顶部

显示

忘记密码?

显示

显示

获取验证码

Close