spotfire中的月持续时间输入值

spotfire中的月持续时间输入值,spotfire,Spotfire,我在文本区域中有year、Month下拉属性和monthdurationinput字段属性 有人能建议我限制表中的数据或自定义表达式吗 年-月持续时间 2016年4月9日 五月 六月 7月 八月 九月 十月 十一月 12月 2017年1月 如果用户选择2016年和2017年1月,则上面的示例以及下拉属性和持续时间9输入字段表示2017年1月的4月+9个月值必须显示在表中 任何人都可以帮助我限制数据表达式或自定义表达式 谢谢 纳文这个问题有点难理解,但我要试一试。我想你正在寻找这样的东西: # A

我在文本区域中有year、Month下拉属性和monthdurationinput字段属性

有人能建议我限制表中的数据或自定义表达式吗

年-月持续时间 2016年4月9日

五月 六月 7月 八月 九月 十月 十一月 12月 2017年1月

如果用户选择2016年和2017年1月,则上面的示例以及下拉属性和持续时间9输入字段表示2017年1月的4月+9个月值必须显示在表中

任何人都可以帮助我限制数据表达式或自定义表达式

谢谢
纳文这个问题有点难理解,但我要试一试。我想你正在寻找这样的东西:

# Assumptions: 3 document properties 
# 1) StartYear = Integer, The starting year the user selects from the listbox 
# 2) StartMonth = Integer, The starting month the user selects from the listbox (Can display as text (i.e. Apr.) but set to integer for actual property 
# 3) RangeMonth = Integer, number of months user inputs to add to date range.



(Year([DATECOL]) >= DocumentProperty("StartYear")) and Month([DATECOL]) > DocumentProperty("StartMonth") and 
 Year([DATECOL]) <= Year(DateAdd('month', DocumentProperty("RangeMonth"), Date(DocumentProperty("StartYear"), DocumentProperty("StartMonth"), 1))) and
 Month([DATECOL]) <= Month(DateAdd('month', DocumentProperty("RangeMonth"), Date(DocumentProperty("StartYear"), DocumentProperty("StartMonth"), 1)))

首先,您要确保DATECOL值>开始年份和月份。然后,您将开始年份和月份,将用户输入的RangeMonth添加到其中,并确保DATECOL为。您可以稍微编辑一下您的问题,以使其更清楚地了解您的问题吗?非常感谢您的帮助…..工作正常,但如果我选择startMonth作为一月,RangeMonth作为4,则我将得到2月、3月、4月,5月份数据,1月份除外。是否有可能同时获得StartMonth 1月数据以及RangeMonthFeb、Mar、Apr、May…谢谢,将Month[DATECOL]>DocumentPropertyStartMonth更改为Month[DATECOL]>=DocumentPropertyStartMonth如果这有效,请接受此答案。此处询问并回答了相同的问题