Define Spotfire Axis Range for Text Values - spotfire

I have a Scatter Plot which is incorrectly ordering its textual values. I can't post a picture, but I will describe it. The X-Axis is currently ordered left to right as 'None to Very Low' -> 'Medium' -> 'Low' -> and 'High'. I'd like for it to be ordered 'None to Very Low' -> 'Low' -> 'Medium' -> 'High'. There is not any obvious way to change the ordering. How can I correct this?

you can adjust the order of values in a column:
from the Edit menu, select Column Properties
make sure the correct data table is selected from the dropdown at the top of this dialog
locate and select the [Effort] column
click the Sort Order tab
choose Custom sort order and then click the Configure... button
adjust the order as desired
more details with screenshots in the Spotfire documentation: http://stn.spotfire.com/spotfire_client_help/data/data_details_on_column_properties_sort_order.htm

Related

Aligning vertically a series of tables with text

Hi I need the text to be in a specific format in a spreadsheet to be able to upload it on a translation tool.
I have already used the text split function to separate the text in a cell with bullet points, moving each bullet point to a separate cell.
enter image description here
Then I used the transpose function to separate each set of data. For context, you are looking at fashion products.
The name of the product is on the first row, followed by a list of features (e.g. "Bracciale" means bracelet and it is followed by the list of materials)
enter image description here
Now for the last step, I need these sets to be vertical, not horizontal. Like this:
enter image description here
I would like to set up an automatic system so that every time we receive a list with hundreds of these products we do not need to copy-paste them one below the other.
With pivot tables maybe? Keep in mind that if it is too complex it might be hard to train the translators to do it each time. Please let me know your suggestions. Thank you!
I am not a programmer. I tried pivot tables but the data was in the wrong order and I am not sure how to get the data out from the pivot table with values only without the sub-menus.
My suggestion would be to use the 'Unpivot Columns' feature in the Power Query Editor - it would be really simple.
Steps:
Select the whole range
Go to Data // Get & Transform Data // From Table/Range
Uncheck 'My Table has headers' (unless it does - but doesn't look like it?)
Press OK. This will open Power Query Editor and will have actually given you column names Col1/2/3 etc, but ignore that.
Go to Add Column // Index column
Select all columns EXCEPT the new index column by Shift+clicking on those headers
Go to Transform // Unpivot Columns
Assuming the order is important, click in the Attribute column and Sort Ascending
Click in the Index column and Sort Ascending
Remove the Attribute and Index columns if you want (right click header)
Go to File // Close & Load
You will get a new table - dynamically linked to the first (ie. can be updated/refreshed) - in the unpivoted format.
Let me know if you need more details / screenshot?
Based of this trick, maybe the following is helpfull:
Formula in A5:
=DROP(REDUCE(0,A1:A3,LAMBDA(a,b,VSTACK(a,TEXTSPLIT(b,,HSTACK(CHAR(10),"^"),1)))),1)
TEXTSPLIT() will use a combination of newline chars and the circumflex to split the input directly into a vertical array;
Iteration in REDUCE() will allow for stacked results;
DROP() the initial value from results.

Tibco SpotFire - Line chart data columns linked to itemized selection list

I'm new to Tibco SpotFire, so please forgive any mistakes in terminology, etc.
I have a line chart with two columns from the data table selected to be shown on the y-axis. I would like to make an itemized menu where you can select one item at a time, such that which two data columns are shown on the y-axis is a function of which item in the itemized menu is chosen.
For example, let's say my data table column names are Col_1, Col_2, Col_3, Col_4, Col_5, and Col_6. I want to make an itemized selection menu with items A, B, and C, such that...
If A is selected, Col_1 and Col_2 are the data columns used by the y-axis.
If B is selected, Col_3 and Col_4 are the data columns used by the y-axis.
If C is selected, Col_5 and Col_6 are the data columns used by the y-axis.
How can I accomplish this? Currently, I know neither how to make an itemized selection menu at all, nor how to link the y-axis data columns to it.
Thanks for any help.
P.S. I'm betting there is a technical name for what I'm calling an "itemized selection menu" above. If someone knows what it is, please let me know and I will edit this post accordingly.
You'll need a text box and a line chart. In the text box, add a Property Control (Drop-down list). You'll want to create a new document property that looks something like this:
After that, you'll need to tie in the Document Property to your plot. Some code like the following should achieve what you are looking for:
case when DocumentProperty("Selector")="Col1Col2" then Sum([X])
when DocumentProperty("Selector")="Col3Col4" then Sum([Y])
when DocumentProperty("Selector")="Col5Col6" then Sum([Z])
end,
case when DocumentProperty("Selector")="Col1Col2" then Sum([XX])
when DocumentProperty("Selector")="Col3Col4" then Sum([YY])
when DocumentProperty("Selector")="Col5Col6" then Sum([ZZ])
end
Where column [X] and [XX] would be tied to "Col1Col2" and so on. Now, selecting "A" from the drop down in the text box will plot [X] and [XX] on your plot.

Excel - Lookup multiple values in unknown columns and create bar chart out of it

I am trying to get the following thing to work in Excel. I have a list of values out of which I want to create a bar chart. Easy thing normally, but in this special case I do not know how to get it to work with references that change.
I have the data structured as follows:
Name Site Value
---------------------
A X 1
---------------------
B Y 2
---------------------
G Z 3
---------------------
D Z 0
---------------------
F X 1
---------------------
Q Y 2
---------------------
From the information available in this array I want to create three different bar charts, one per site. The problem is that I don't know the absolute cell references, as the data is inserted by colleagues. In addition, the number of datapoints to display is not known either. In case there a three different entries for one site, I want to display a bar chart with these three values, the names of the entries should be used as the label for the bars in the chart. In case there are four different entries, I want to display a bar chart with four bars, etc... This whole table should be dynamic, so in case that a new entry is added to the range with the corresponding site, it should be automatically included in the bar chart.
I already tried to find a workaround for this and read about dynamic charts and lookup functions in excel, but nothing did the trick so far.
If you have any idea, please let me know.
Thanks in advance :)
What I would suggest is:
Create 3 Pivot Tables. The data source for each of them would be: A:C (the whole columns). This way, when an entry is added, you just update the tables and they get in.
Column "Site" should be added as a filter, then on one Pivot Table you would filter only for site X, another for site Y and the other for site Z.
Now, "Name" go on Rows and Value go on Values.
Now, for each Pivot Table you add a bar chart.
I think this solves your issue.
Here'a a screen showing it. My excel is in PT-BR but I think you can get the general idea.
Edit: you can also put the same scale on all 3 charts, so you can easily compare the values.
Thanks to both of you guys and sorry for the late reply. In the end I got it working with pivot tables, though I had to fiddle a bit with the pivot table wizard, as I wanted to display values from multiple sheets. Thanks again and best regards :)

Spotfire: How to use trellis to show 4 elements: 3 years + set of records older than 3 years?

Lets say I have the data about some kind of requests.
I have column determining request's creation date.
I wish to show the requestes Trellis'ed by this date but not the standard way.
I wish all the requests with creation date older than 2013-01-01 to be grouppped in one trellis graph.
I also would like to retain the possibility to have information on both year and quarter level as it is available for typical date column.
The image below show sth similar to what I need but the Empty section comes as the last one and I need it with different label and on the left hand side rather than as it is now on the right hand side.
Any ideas ?
my suggestion is to make two visualizations. you can duplicate the one you've already created and then limit its data by editing the properties for that vis, viewing the Data page, and using the Limit data using expression field, giving an expression like [Date Column] < "2013-01-01". you'd do the same on the second vis except use an expression like [Date Column] >= "2013-01-01".
the easiest way to change (Empty) to "something" is to not leave it empty :) you can create a calculated column with the expression If([Column] is null, "Custom Empty", [Column]) and then use that on the horizontal axis. alternatively you can hide (Empty) values from a visualization by limiting the visualization by an expression like [Column] is not null.
you can adjust the order which values are shown by going to the Edit menu and choosing Column Properties. choose the column, click the Sort Order tab, select Custom Sort Order, and click Configure.

Filtering a PivotTable by Boolean

The source data for my Excel PivotTable looks like the following (this is a simplification):
id name score
1 john 15
2 james 2
3 pat 14
4 jake 12
...
I have a PivotTable that uses this as a data source. Now, what I want to do is have the PivotTable only consider entries if their id is less than 100. This is theoretically achievable by having a Report Filter on id, and de-selecting any number greater than 100. But that's rather absurd.
How can I filter out data using a Boolean constraint? I've tried various methods, none of which worked. It seems like calculated fields are the key, but it doesn't seem possible to create a filter on calculated fields.
I'm using Excel 2011 for Mac, if that makes a difference. I'm a programmer, but I've never programmed in Excel, so if that's the solution, I'd request baby steps. :) Thank you!
AFAIK, In Excel 2011, you cannot use a report filter to apply any kind of filter. You have to manually check/uncheck the values that you want or don't want.
The alternative that I can think of is to insert a column before your data and enter the formula
=If(B2<100,TRUE,FALSE)
and copy it down using Autofill. (See screenshot below)
Now create a pivot and put the field "Less Than 100" in the report filter and simply select TRUE (See screenshot below)
If you don't want to go down that path then move the ID field to ROW LABEL from REPORT FILTER where you can use a filter.
A Report Filter is exactly what I would do, but rather than manually de-selecting the fields as you suggest you would do I would apply a Label filter to be less than the cut-off point, which in your example is 100.
I haven't used Excel on Mac, but on Windows on the PivotTable Field List, to the right of the id field click the little black arrow, and select Label Filters -> Less Than and then enter 100 in the dialogue that pops up.
Given the inherent value of PivotTables is the ability to apply filters exactly for this sort of scenario I don't think I'd do anything more complicated.

Resources