spotfire

Spotfire - Show top values in stacked bar chart

一笑奈何 提交于 2020-06-01 05:52:02
问题 I have a stacked bar chart that looks like this : I would like to only show the top 3 bars in terms of value, that is to say the three first bars. I tried to use the Show/Hide feature but it doesn't work as I expected. For example if I limit to Show top 1 value with the Show/Hide value, i get : when I expect to also have the orange and blue bars that are stacked in the first picture. Is there a way to do what I am looking for? 回答1: You will have to achieve a dynamic rank and use that to

Spotfire: Create button to start loading data ,instead of using load data on demand

南楼画角 提交于 2020-02-03 16:45:18
问题 Is there any way to add a button to load data as and when required. I am aware of load data on demand option, This is not helping as I have more than 10 millions of data rows and it still takes time to load in spotfire. I need an option where in the visualization has to start the data loading when i click the button to start , where as "load data on demand" is an option to load at the source itself. Under TEXT AREA we have an option to add "INSERT ACTION ITEM" which gives option to add button

spotfire: search a column of another table

谁都会走 提交于 2020-01-25 04:09:05
问题 I'm trying to make a calculated column in Spotfire, where a specific value has to be present in a column of another table before a new value is assigned. My expression looks like this: If(Find('Specific value first table',**'present in second table'**) is Null, 0, 'New Value') I have no idea how to involve this second table in my search, does anyone has any idea? Thanks in advance! 回答1: You won't be able to reference another table when creating a calculated column. However, I think we can

Spotfire add column from python list

限于喜欢 提交于 2020-01-24 12:04:25
问题 How would one add a python list to a spotfire data table as a new column. For example I wish to add a column that has values calculated using python. from Spotfire.Dxp.Data import * # Get the data table DataTable = Document.Data.Tables.TryGetValue("Table Name")[1] # define some cursors CursorA = DataValueCursor.CreateFormatted(DataTable.Columns["Column A"]) CursorB = DataValueCursor.CreateNumeric(DataTable.Columns["Column B"]) CursorC = DataValueCursor.CreateNumeric(DataTable.Columns["Column

Spotfire : Syntax issue or Window functions not allowed?

流过昼夜 提交于 2020-01-15 09:28:30
问题 I am using Data functions in Spotfire. I have the sqldf package installed. Here is the query: #Package to run sqls library(sqldf) #Input data frame op1 <- sqldf("SELECT Prod_parnt,prodct_grop,year,month,week, count(distinct id) as prd_cnt, Sum(Count(distinct id)) over (partition by modlty,prodct_grop order by year,month,week rows between 12 preceding and current row) as cumu_prd_cnt, avg(rate) as sal_rate FROM ip1 group by Prod_parnt,prodct_grop,year,month,week") The error I am facing: "TIBCO

calculation the difference for same column for the specific rows in Spotfire

淺唱寂寞╮ 提交于 2020-01-10 20:10:53
问题 I have a problem about the difference calculation for the rows using calculated column in Spotfire. I am wondering if it is possible to create a calculated column that will count the difference between the current row with the next row which have different attribute. A sample table could be like this: the result could be like this: the basic row is: When type =1, then calculate the difference between its current value and its next nearest row which type =0, then add the result to a new

Match two trellis pages between two different graphs

非 Y 不嫁゛ 提交于 2020-01-03 03:18:14
问题 I want to have on the same page a pie chart and a bar chart, with trellis pages. They both have 5 columns as trellis, so 5 different pages that you can visualize by scrolling down. However, I would like to display the same pages at the same time for both graphs. For instance, let's imagine I'm on the pie chart, I scroll down one page - and so my pie chart is on page2 - I want my bar chart to automatically go to page 2 as well I tried to use markings but although it links a bit the two graphs,

how to eliminate outlier in spotfire box plots

旧巷老猫 提交于 2019-12-30 11:15:11
问题 Thanks for your help in advance. Regards, Raj 回答1: Adding the values to MAX() values would skew the data even if it were possible. There are two hacks to do this though. Right Click > Properties > Y-Axis > set the MIN range value and MAX range values to something that would eliminate all outliers. This is really only suitable for box plots that are close in all values to each other (all percentiles) On your toolbar click Insert > Calculated Column > choose the correct data table and paste in

R - check if string contains dates within specific date range

≯℡__Kan透↙ 提交于 2019-12-29 00:48:31
问题 I have the following requirement in R script (to write a Expression function in Spotfire): dateString <- "04/30/2015 03/21/2015 06/28/2015 12/19/2015" startDate <- "04/01/2015" endDate <- "07/01/2015" Note: dateString could contain any number of dates. I need to return a "Yes"/TRUE if all the dates in dateString are between startDate and endDate, else return "No"/FALSE. 回答1: You can use convenient function between from either dplyr/data.table after converting to 'Date' class. The 'dateString'

Spotfire - How to group multiple columns under a single column in data table visualization

丶灬走出姿态 提交于 2019-12-24 19:39:01
问题 How to group multiple columns under a single column in data table visualization Please see attached image 回答1: @BULB - You can transform your table by unpivoting and pivoting data to get the desired result. I first un-pivoted the original data table by applying transformation. INSERT > Transformations Then pivoted the unpivot output by applying another transformation. Note: You can apply both the transformations simultaneously. Final Output: 来源: https://stackoverflow.com/questions/46766637