spotfire

Date Range or Columns values entered in Prompt need to be used as variables in Spotfire IL modified SQL

。_饼干妹妹 提交于 2019-12-24 08:15:30
问题 I need to use the prompted input of a date range/any column to be used as a variable in the modified SQl feature of the Information Link. I have some complex queries which uses multiple conditions and i wont be able to keep them in the view and want to add those conditions in modified SQL using this variable. This is a sample SQL where i need to use the variable/parameter instead of the dates given SELECT xxxxx.yyyy FROM xxxxx, xxxxx, xxxxx, xxxxx WHERE xxxxx.yyyyy = xxxxx.yyyyy AND ( ((

sporfire: calculate the avg per 15 minutes

无人久伴 提交于 2019-12-24 06:45:25
问题 I am a beginner for Spotfire. I have a problem about the average calculation per each 15 mins by calculated column. A sample table could be like this: id time-stamp value 1 7/1/2016 12:01:01 AM 1.1 2 7/1/2016 12:05:03 AM 0.9 3 7/1/2016 12:08:04 AM 1.2 4 7/1/2016 12:09:06 AM 0.8 5 7/1/2016 12:12:09 AM 0.4 6 7/1/2016 12:14:10 AM 0.6 7 7/1/2016 12:15:12 AM 1.3 8 7/1/2016 12:18:04 AM 1.4 9 7/1/2016 12:21:06 AM 0.7 10 7/1/2016 12:24:09 AM 1.7 11 7/1/2016 12:31:10 AM 0.5 12 7/1/2016 12:39:12 AM 1.3

Is it possible to use IronPython to return the path of the current *.dxp project as a string?

自作多情 提交于 2019-12-24 03:48:08
问题 This should (I think) have a simple answer, assuming that an answer exists. Is it possible to use IronPython to return the path of the current *.dxp project as a string? I use something similar in VBA frequently, and it's become pretty useful. I've tried looking, but I have a hard time working through TIBCO's Python material. :\ 回答1: The script below should help you with this. There are 2 ways to get the path of the analysis depending on if you are using a library file or a .dxp. Your

R - generate dynamic number of columns and substring column values

喜欢而已 提交于 2019-12-23 22:14:52
问题 looking for some help with data manipulation in R. I have data in the following format; ID L1 L2 L3 1 BBCBCACCBCB CBCBBBB BEBBBAAB 2 BBCBCCCCBCB CBCCCBC BBAACCCB 3 BBCBCACCBCB CBCBBBB BEBBBAAB 4 BBCBCACCBCB CBCBBBB BEBBBAAB 5 BBCBACBCCCB BBCCCBC BBCBAAAAB 6 BBCBBCCBBCB BBCBCEB BBBBCAACB 7 BBCBBCCBBCB BBCBCEB BBBBCAACB 8 9 BBCBCACCBCB CBCBBBB BEBBBAAB 10 BBCBBCCBBCB BBCBCEB BBBBCAACB 11 BBCBBCCBBCB BBCBCEB BBBBCAACB The values in each column will be strings of varying length. I want an R

IronPython - Run an Excel Macro

六月ゝ 毕业季﹏ 提交于 2019-12-23 16:34:24
问题 I'm running TIBCO Spotfire v4. It has IronPython built in. Looking to run a Spotfire report that will export a .xls file (that part is done). Looking for a script to open an Excel file and run a macro to be able to format the file. Here's some code I found and tried using. Not sure where the import items come from! import os, os.path, win32com.client def run_macro(fName, macName, path=os.getcwd()): """ pre: fName is the name a valid Excel file with macro macName post: fName!macName is run,

Using Countif on Dates in R

帅比萌擦擦* 提交于 2019-12-23 04:57:17
问题 I have the following table **A** | **B** | **C** |**D** | :----: | :----: | :----:|:----:| 1/1/17 | 3/1/17 |4/1/17 | H | 1/1/17 | 3/1/17 |4/1/17 | H | 2/1/17 | 4/1/17 |5/1/17 | V | 3/1/17 | 5/1/17 |6/1/17 | V | 4/1/17 | 5/1/17 |7/1/17 | H | 4/1/17 | 6/1/17 |7/1/17 | H | Looking for the result as in the table below using R code 1. A column with Unique list of dates from columns A,B & C above 2. A count of dates <= (less than or equal to) the unique dates column value in each of the columns A,B

Spotfire - Custom sub total

廉价感情. 提交于 2019-12-20 04:37:17
问题 I would like to calculate sub total in Spotfire cross table based on a condition and color the sub total row. As shown in the table below, I would like to add sub total of all the rows by store except 'Watermelon' but show 'Watermelon' sales row in the table. Please let me know if this is possible. Example below: Cross Table: Thanks for your help! 回答1: Short Answer is No. Sub Total and Grand Total is calculated based off the data in the visualization, regardless if you are rendering it or not

Animating Data Changes in Tibco Spotfire

本秂侑毒 提交于 2019-12-20 03:32:25
问题 This is my first post here, so please forgive me if I fail at etiquette somewhere along the way. I am working on a POC dealing with animating a visualization within Tibco Spotfire 7.0 which will allow a user to see changes in data over time by iterating through a set of filters or by iterating through alterations to the data based on a pre-determined set of conditions. TIBCOmmunity already defines a custom tool for this purpose http://tibcoanalytics.com/spotfire/archive/totw/2011-01-16.html.

Better way to refresh imported columns?

空扰寡人 提交于 2019-12-18 07:07:36
问题 I have a table in spotfire with a couple columns imported from another table as a lookup. As an example, Col2 is used to match for the import of ImportedCol: +------+------+-------------+ | Col1 | Col2 | ImportedCol | +------+------+-------------+ | 1 | A | Val1 | | 2 | B | Val2 | | 3 | A | Val1 | | 4 | C | Val3 | | 5 | B | Val2 | | 6 | A | Val1 | | 7 | D | Val4 | +------+------+-------------+ However, the data in Col2 is subject to change. In that event, I need ImportedCol to change with it,

Spotfire IronPython script: Delete a data-table

不问归期 提交于 2019-12-13 16:54:48
问题 I am new to iron-python. I would be obliged if anyone can tell me how to completely delete a data-table using iron-python? 回答1: you can do this pretty easily with: dt_name = "Data Table" # name of the data table dt = Document.Data.Tables[dt_name] Document.Data.Tables.Remove(dt) of course you can compress this all to: Document.Data.Tables.Remove(Document.Data.Tables["Data Table"]) 来源: https://stackoverflow.com/questions/29891173/spotfire-ironpython-script-delete-a-data-table