Plotting data that matches a condition from another row in Tibco Spotfire - spotfire

I am relatively new to Spotfire and i wanted to ask the following question:
I am trying to plot data from a column "Value" when another row matches a condition from 2 other columns (When "String Tag" = F and "String ID" = Z Then plot "Value" when "String Tag" = A, green highlighted rows). So to clarify my problem added a snapshot of the table:
Same thing to do with the yellow and red highlighted rows. Can anybody help me with this question? Is this possible in Spotfire?
regards,
Addi

I want to plot the scatter plot with "Datetime" on x-axis and "Value" on y-axis. For each highlighted block i want to make separate scatter plots as there are more values structured like this. I have added another column to clarify further. If I plot "Result" column against "Datetime" i get my answer. However, i don't know how can create the "Result" column using calculated column functionality.
updated example snapshot

Related

Plot Selected Columns in PivotChart from Pivot-Table

My pivot table contains the Sum and % of 'N' and 'Y' queries generated using the PivotTable '% of RowTotal' and 'Sum Values' functions.
I want to generate a Pivot Chart that Filters for FirstOpenedText and only includes two columns "Sum of # of Queries Issued 2" and "Total Sum of # of Queries Issued".
Is there a way to plot only the selected columns instead of everything in PivotChart?
PS:
I tried formatting the table to hide unused columns but the format messes up every time I filter something in the chart.
I can't plot a normal graph too as I need the Filter function in the graph.
Please help.. TYSM!

Excel chart shows wrong data when zero-length string "" is in data

I am trying to make a scatter plot in Excel for Mac which should look like this:
I am using an IF formula which returns "" when my x-data is negative or 0 and then using this new column to make the plot. However, all the x-values in the plot turn out to be very different as here:
When I manually delete all the "" from the column, I get the correct plot. If I just add one "" in the column all the x-values change in the plot. I see the correct x-values in the spreadsheet column.
How can I get Excel to ignore the "" when plotting or plot the values that are shown? What is causing this error?
You can replace "" with NA() in your IF formula to avoid plotting these values. Excel charts ignore #N/A cells. In your case, assuming your x-values are in column A, the formula in the new column (for plotting) is
=IF(A2<=0,NA(),A2).

How to create bar chart with data points in Excel?

I want to create this style of chart in Excel.
It is basically a bar chart with has categories on the y-axis, a single dimension on the x-axis, and two points per category showing change over time. I have the data I need, however I do not know
How to create the data points on a bar chart in Excel; or
The easiest way to create a similar chart.
Thanks for your help.
consider the following screenshot:
create an XY scatter chart
Add a series with Y Value for Y and StartValue for X
Add a series with Y Value for Y and End Point for X
Add horizontal error bars set to minus, no cap, custom value and select the Difference values from column E
format the error bars to be thick and grey
hide the Y axis labels (set to "none")
add a helper series with Y value for Y and Y Labels from column G for X
add data labels to this series and use the text from column A. With Excel 2013 and later you can use "Value from cells". With earlier versions you need to edit each label and point it to the cell with the text.
format the Y labels series to have no marker. The marker is still visible in the screenshot, so you can see where it needs to sit.
not in the screenshot: Add data labels to the End point series and use the values from column F.
not in the screenshot: format the markers for Start Value and End Point to be a bit bigger and the desired color.

How do i use Specified Data as an axis in excel

I have a question about doing a graph in excel, i im trying to make a representation of an accelerometer. in this i have 4 values X,Y,Z and time between measurements.
X=1,039 Y=8,743 Z=4,747 TIMEms=4
I have 600+ value sets like this and i want to make 3 graphs for X,Y,Z with TIMEms as the distance between each datapoint on the horizantal axiz. How can i do this?
I tried using the values of TIMEms but this just gives me a horizontal axis consisting of 5's with the default distance of 1 between them.
If you currently have a sheet with columns X, Y, Z and TIMEms, you'll need to add a new column to the end to roll-up all the time differences.
Let's assume you have this sheet, and TIMEms is column D. In column E, label it "Time" in cell E1, and in E2 set this equal to zero. E3, set to the formula:
= E2 + D2
Copy/paste this formula down the column (assumes the time quoted in column D is the time since the last observation, rather than time until next observation). You should now see time increase down this column as a "milliseconds since recording began".
Next you'll need to insert a scatter chart (whichever flavour you prefer), setting the X-values to be the values in column E, and the Y values to be whichever of the X/Y/Z values you want to plot. On the "Insert" ribbon, in the "Charts" area, look for the graph looking like a bunch of unconnected points - hover over it and it should say "Insert scatter (X,Y) or Bubble chart" - select one of the scatter charts.
When you have the chart object, you need to wire up the data correctly with the "Select Data" UI you get access from when right-clicking on the chart object. Click "Add" and you get a dialog prompting you for the series name, the X-values and the Y-values - enter appropriate ranges in those boxes, for example X-values would be "=E2:E600", and Y-values "=B2:B600", to plot the actual Y values.
You can also add more series to the chart to get each of X, Y and Z on the same chart, if you so desire.

Excel: Pivot Table - Percentage of one value from another

My pivot table has 3 columns:
Row label (expand/collapse items in each row)
Count of Case
Count of Assigned
My DATA sheet has 2 sets of data:
"Case" (line item for every bug, feature, etc.)
"Assigned" (name of the person assigned to the case)
On the pivot table, how do I display a column that effectively displays "X is Y % of Z" (assigned/case as percent)?
Example: http://i.imgur.com/ye0lkTH.jpg
In the linked image, Case (Z) is '10' and Assigned (X) is '3'. A third column should display "30%" (Y).
I've tried Calculated Field and even reduced "Assigned" to a 1 or 0 on the DATA sheet (as a pseudo "True" or "False", and then using that data in the Pivot Table) - all to no avail.
Please help! I'd really appreciate it.
Looks like you cannot use count() in the calculated fields. I would try to manipulate the source data so that you are summing numbers and not counting 'names'. Then, create a calculated field as shown below:

Resources