spotfire

Grand Total Issue in Cross Table of Spotfire

给你一囗甜甜゛ 提交于 2019-12-07 16:02:18
问题 When I use FIRST(CG1) in 'Cell Values' the grand total is not summing up instead its showing one of the values from the result of FIRST(CG1) . Please advise if we have to always use sum(XXX) to get the grand total summed up. 回答1: Short answer, yes if you want the Grand Total to be a summation of your data. Applying a grand total to a different aggregation will have different results. AVG will average the averages of your Category Axis MAX will take the MAX of the Max for each category

Spotfire - Finding Percentage of Subtotals

我是研究僧i 提交于 2019-12-06 14:42:10
I'm trying to turn a cross table that looks like this into a table which shows the subtotals and percentage over each Group like the example below Where the percentage is the sales of each product divided by the total sales in each group, so for Product A = 20 / (20+40+30) = 22% So far, I've managed to use Spotfire built-in subtotal function and the following expression to almost achieved the table I want Sum([Sales) / Sum([Sales]) OVER (Intersect(Parent([Axis.Rows]),All([Axis.Rows]))) but the only problem is that the percentage for my subtotal row doesn't seems to equal to 100%, instead it is

Export Datatables from Spotfire to CSV using IronPython Script

北城余情 提交于 2019-12-06 13:01:28
问题 I have a IronPython script I use to export all my data tables from a Spotfire project. Currently it works perfectly. It loops through all datatables and exports them as ".xlsx". Now I need to export the files as ".csv" which I thought would be as simple as changing ".xlsx" to ".csv". This script still exports the files, names them all .csv, but what is inside the file is a .xlsx, Im not sure how or why. The code is just changing the file extension name but not converting the file to csv. Here

Script to Export Spotfire Graphic to PowerPoint

孤街醉人 提交于 2019-12-06 05:40:46
I am trying to export an active page to an existing PowerPoint presentation. I know how to do this from the title bar, but I would like to incorporate this into the IronPython code I am writing so I can do several slides at once. Thanks, Joseph This will open up powerpoint and export one visualisation per page: from System.IO import * from Spotfire.Dxp.Application.Visuals import VisualContent from System.Drawing import Bitmap, Graphics, Rectangle, Point import clr clr.AddReference("Microsoft.Office.Interop.PowerPoint") import Microsoft.Office.Interop.PowerPoint as PowerPoint powerpoint =

Grand Total Issue in Cross Table of Spotfire

北城以北 提交于 2019-12-05 20:36:30
When I use FIRST(CG1) in 'Cell Values' the grand total is not summing up instead its showing one of the values from the result of FIRST(CG1) . Please advise if we have to always use sum(XXX) to get the grand total summed up. Short answer, yes if you want the Grand Total to be a summation of your data. Applying a grand total to a different aggregation will have different results. AVG will average the averages of your Category Axis MAX will take the MAX of the Max for each category Cumulative Sum will take the "Last" value in your Category since it doesn't have any additional values to SUM up.

matching for group (Expressions) in same column in Spotfire

余生长醉 提交于 2019-12-05 17:45:40
问题 Regarding the previous question which I have posted: calculation the difference for same column for the specific rows in Spotfire I have a new problem for it, below is the sample: The new function that i want to realize is, searching for the next nearest TYPE=0 for TYPE=1 if the TYPE=1 has nearest TYPE=0, then mark it as 'T' in a new calculated column, otherwise as NULL Data Rules: Status column contains{1,2} in order, the default value of the null space is same as the last nearest Status

Export Datatables from Spotfire to CSV using IronPython Script

牧云@^-^@ 提交于 2019-12-04 19:35:28
I have a IronPython script I use to export all my data tables from a Spotfire project. Currently it works perfectly. It loops through all datatables and exports them as ".xlsx". Now I need to export the files as ".csv" which I thought would be as simple as changing ".xlsx" to ".csv". This script still exports the files, names them all .csv, but what is inside the file is a .xlsx, Im not sure how or why. The code is just changing the file extension name but not converting the file to csv. Here is the code I am currently using: I have posted the full code at the bottom, and the code I believe is

Spotfire date difference using over function

删除回忆录丶 提交于 2019-12-04 05:14:48
问题 I have the following data set: Item || Date || Client ID || Date difference A || 12/12/2014 || 102 || A || 13/12/2014 || 102 || 1 B || 12/12/2014 || 141 || B || 17/12/2014 || 141 || 5 I would like to calculate the difference in years between the two dates when the client ID is the same. What expression can I use in a calculated column to get that value? UPDATE Hi This would be the intended values calculated. My table has approximately 300,000 records in no particular order. Would I have to

matching for group (Expressions) in same column in Spotfire

a 夏天 提交于 2019-12-04 02:31:44
Regarding the previous question which I have posted: calculation the difference for same column for the specific rows in Spotfire I have a new problem for it, below is the sample: The new function that i want to realize is, searching for the next nearest TYPE=0 for TYPE=1 if the TYPE=1 has nearest TYPE=0, then mark it as 'T' in a new calculated column, otherwise as NULL Data Rules: Status column contains{1,2} in order, the default value of the null space is same as the last nearest Status value above it. Type column contains only 0 and 1 randomly output should be like this: the solution what i

Spotfire IF Statement in Custom Expression [closed]

风流意气都作罢 提交于 2019-12-02 20:08:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . If(Len([case_SPEC]> 0),[case_SPEC],[case_type]) When I tried above formula I receive an error '>' as invalid operator Could someone help in fixing this. 回答1: Try this If(Len([THROUGHPUT_SPEC]) > 0,[THROUGHPUT_SPEC],[SUB_TYPE]) You omitted the closing bracket in Len([THROUGHPUT_SPEC]) 来源: https://stackoverflow