Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Date Spotfire文本转换为日期的整数_Date_Datetime_Text_Integer_Spotfire - Fatal编程技术网

Date Spotfire文本转换为日期的整数

Date Spotfire文本转换为日期的整数,date,datetime,text,integer,spotfire,Date,Datetime,Text,Integer,Spotfire,我正在尝试将excel电子表格中的时间序列数据加载到spotfire中。在我的电子表格中,有一个单独的年(spotfire将其视为整数)和月(spotfire将其视为文本)列,因为它是三个字母的缩写格式,即一月是一月。我试图避免更改excel中的数据,并希望在spotfire中完成我的所有工作,因为这将定期更新。如何在spotfire中链接这些列,以便在时间范围内绘制变量 单击插入>插入计算列。。。确保选择了正确的数据表。在表达式字段中键入: Date([year], case when

我正在尝试将excel电子表格中的时间序列数据加载到spotfire中。在我的电子表格中,有一个单独的年(spotfire将其视为整数)和月(spotfire将其视为文本)列,因为它是三个字母的缩写格式,即一月是一月。我试图避免更改excel中的数据,并希望在spotfire中完成我的所有工作,因为这将定期更新。如何在spotfire中链接这些列,以便在时间范围内绘制变量

单击插入>插入计算列。。。确保选择了正确的数据表。在表达式字段中键入:

Date([year],
   case  when [month]="JAN" then 1
      when [month]="FEB" then 2
      when [month]="MAR" then 3
      when [month]="APR" then 4
      when [month]="MAY" then 5
      when [month]="JUN" then 6
      when [month]="JUL" then 7
      when [month]="AUG" then 8
      when [month]="SEP" then 9
      when [month]="OCT" then 10
      when [month]="NOV" then 11
      when [month]="DEC" then 12 end,
   1)

我会把它命名为“monthdate”。请注意,每个日期的日期都等于1。如果数据中还有日期,只需将该列放在上面的公式中,而不是最后的
1

@geop-为什么不将这两列串联起来呢?