creating scatter plot from cross table spotfire - scatter-plot

Is there a way to do this in Spotfire? I want to be able to create a scatter plot from a cross table view of a data table. The way that I set up the cross table would result in 2 columns of data that I'd like to plot against each other. I have been looking for a while to no avail.
Example data would be like:
var1 var2 values
A1 B1 x
A1 B2 y
A2 B1 z
A2 B2 a
The cross table view is set up like this:
B1 B2
A1 x y
A2 z a
I would like to now make a scatter plot of B1 vs B2. Somehow this is far more difficult in Spotfire than I thought it would be, as Spotfire does not treat the cross table as another data table but a view (if I understand this correctly).
Best,
Ken

you're correct that a cross table is a "virtual" view of an existing table, not an actual copy/new table.
you can create a new table as a cross table by...
File » Add Data Tables...
click Add ▼ and choose the existing table (under the heading From Current Analysis)
at the bottom of this dialog, click Show Transformations
Add a new Pivot transformation
configure the pivot as you like. in your case, I think the Row Identifier would be [var1], Column Titles [var2], and Values will be [values]. if you don't need any aggregation for [values], choose the First() aggregation method
accept all changes and build the scatterplot using this new table

Related

BIRT one dataset per Page

I want to create a BIRT Report with the Report Designer. (I am new to that..)
I can insert some values from a Dataset and can display it easily.
But now, I want to have a MultiPage-Report.
I have a Datasource (XML) with four or more DataSets - and I want to have (every page has the same header and same style) one dataset per Page.
The Data Binding Expression is by now dataSetRow["xxx"] - but how can I create a four-page-Report with same headers on every page and different dataset displaying on every page? - Maybe is there a function like "nextDataset" - or a checkmark to make a multi-page report with the length of the datasets?
Thanks
A Dataset in independent from the layout.
To show the rows from a dataset, you need (except for single-row datasets) a List item or a Table item, which is bound to the Dataset.
You can use the page break properties of the layout items to control page break.
Example:
E.g. if you have 4 datasets D1, D2, D3, D4, then you'll need 4 List or Table items T1, T2, T3, T4.
Set "Page break before" to "Always" for T1, T2, T3, T4 to make sure that each table starts on a new page.

Why are the values showing up as column headers when I try to create a text table in Tableau?

I am trying to create a text table in Tableau and I want to replicate this below:
However for some reason when I have the player names as rows and distance as columns, the values are showing up as the column header (see below)
Any suggestions?
Thanks
The method you have shown in your question won't work because this is not how Tableau works.
Tableau will automatically aggregate data based on the Dimensions you add to your sheet.
If you want to have a table where the distance is listed for each player, just add the following two dimensions into the Rows, in this order:
Player Name, Distance
You will still get a third column saying Abc, but this is because of how Tableau works. You can set this Abc to become shapes if it helps make your table more user friendly.

Referencing last cell value in column

I need a formula for a cell in table A to reference the last cell value in a table B column C. The table B column currently has lots of blank cells that will have data added to it periodically, and the cell in table A will need to keep updating automatically.
I’ve tried INDEX((C,COUNT(C)), which I saw on an Excel forum, but this didn’t have the desired effect on on my Numbers spreadsheet.

Google Sheets - Auto-select an option from existing dropdown menu based on another cell's data

I have a sheet with a dropdown menu in A1, and a cell A2, with values that will be the result originated from a script.
I want a certain option from the dropdown menu (the first one, to be precise) to be selected automatically when a certain value is present in A2.
Here's a simulation:
https://docs.google.com/spreadsheets/d/1x-pmDmB6mbyjXFY0rHOkIzkpNagRJXif9dWNj3TJHkU/edit?usp=sharing
In A1, I want to write the formula:
If A2 is equal or less than zero, I want option 1 to be force displayed/ automatically selected in A1.
If A2 is more than zero, then I want the manually selected option to remain as it is.
I'm not completely sure if we're talking about the same thing, but I believe this has a lot in common with how dynamic dependent dropdowns are created in Google Sheets.
The only main difference is that you don't rely on a dropdown choice for your condition, but any cell value of your choice.
So how does this work?
The value in G1 is:
=IF(F1>0,filter(B:B,A:A="POS"),filter(B:B,A:A="NEG"))
This basically means that if F1 is greater than zero, only the values in Column B, whose corresponding value in Column A is POS, show up in Column F.
If F1 is zero or less than zero, only the values of Column B, whose corresponding value in Column A is NEG, show up in Column F.
Accordingly, we can now use Column F (the range G1:G8) as a 'dynamic' reference for the data validation of a dropdown. In the example, this was done in F2.
This YouTube video explains the underlying filter mechanism pretty well. I just expanded it with an IF-statement.

Trying to manipulate other cells based on dropdown menu

I'd like to manipulate other cells based on the selection from a dropdown menu. For example in cell A1 I have a dropdown with company A, B, C
I need a formula for cell B3 to change the data based on the selection in cell A1.
EX:
If cell A1 selects Company A, I'd like to take data from another tab in my sheet that gives me data for company A and place it into cell B3.
If cell A1 selects Company B, I'd like to take data from another tab in my sheet that gives me data for company B also inside B3.
Basically summarizing different data based on selection of my dropdown menu.
Please try:
=if(A1="A",A!A1,if(A1="B",B!A1,C!A1))

Resources