Spotfire - choose categories to be displayed in Line chart - spotfire

Is it possible to choose only few categories to be included in line chart without using filters?
Example:
I have Spotfire table which shows sum of fruits sold.
I want only apples and oranges to be displayed in my line chart without using filters.
Thank you!

There are different options:
If you want to hide watermelon rows, You can limit the data at the visualization level using visualization>properties>show/hide items or by limiting the rows using visualization>properties>Data>Limit data using expression:
[fruit] in ("Apples","Oranges")
or
[fruit] <> "Watermelons"
To limit data at the axis level, say you want to display Apples and Oranges and group all the others, you can use a custom expression in your axis. For example:
if ([fruit] in ("Apples", "Oranges"),[fruit],"Other Fruits")

Related

Showing multiple lines on Acumatica charts

I am trying to build a chart comparing Actual and Budgeted expenses per Department. I created GI that has columns Department, Budget Amount and Actual Amount.
Any chart type can show either of these amounts.
Is there a way to show both amounts per Department on the same chart?
Thank you.
I did not find a way to add a second independent value because there is only a single value field in chart configuration.
It is however possible to have a breakdown of the value. In chart design mode, edit the chart and try the Series Legend field.
For example, I started with this chart that shows Activity Count per Sales Person:
And I added a breakdown per activity Status in the Legend field:
This fulfills the requirement to have multiple lines in the chart but each line is still showing an aggregate value on the same Activity Count All field.

Spotfire axis restriction

I have 4 columns: Companies, Products, Sales and Sales Growth.
I need to create a cross table with Companies in Horizontal axis, Products in Vertical axis and Sales Growth in cell values. But I need to show only top 10 products (by sum of sales) and top 10 companies (by sum of sales as well) in my vizualisation and I don't know how to restrict products and companies in my axisses.
I tried to calculate new ranking column which I would use as a condition in axis definition, but the result of my calculation is completely wrong and I really don't know what's wrong, it seemed so simple.
DenseRank([Company],"desc",sum([Sales]))
Next options are to use Show/Hide Items or Data limitation, but I didn't manage to set it correctly.
Could you please give me some advice how to do this?
Thank you
The closest example I have is limiting to the top Nth products per company.
Using show/hide with an expression of Max(DenseRank(Sum([Sales]) OVER (Intersect([Companies],[Product])),"desc",[Companies]))

Create a line chart with many axes origins with ability to filter

I am new to Excel with regards to creating charts and I am having some difficulty in trying to achieve what I want. I have two columns, Created On and Product, the data is how many support tickets were raised in 2019 for each product.
Created On is Date format and ranges from 01/01/2019 to 31/01/2019
Product contains 122 different product names
There are 36,165 rows.
I was hoping on to have the list of 122 products on the Y axis and date along the X axis, with a line for each of the 122 products, with origins to show tickets created for each product on each day in 2019.
I wanted to have the ability to use check boxes to filter on specific products and show hide certain products in the line chart. I have played around and researched this with no idea if this is even possible I am certainly not making any progress.
Any advice on if what I am trying to achieve is not possible or tips would be much appreciated.

Calculate column value by sub-column value

I know this will require an advanced custom expression - I have 2 relevant columns, commodity and sub-commodity. A single event can have multiple commodities and sub-commodities. However, some commodities will naturally have more data about them. I don't want this to skew representation of the data.
I want to avoid that by counting values by their unique sub-commodity. In the below example, I want the bar chart to represent two instances of food for Event 1 (1 for meat, 1 for beverages) and one instance of garden for Event 2. How do I accomplish this?
EventID | Commodity | Sub-Commodity
1 Food Meat
1 Food Meat
1 Food Beverages
2 Garden Lawn Mower
2 Garden Lawn Mower
Thanks for the sample data. It helps in providing an answer.
You should be able to do this by using the UniqueCount() function. In this case the Y axis would be the expression UniqueCount([Sub-Commodity]). You can use custom expressions to input this or use the built-in drop down and select UniqueCount from the aggregation drop-down.
Take a look at the below image showing my implementation with a custom expression. Coloring is optional but I did so to show how it included your multiple sub-commodities and how they were counted (1 for Food=>Meat).
See below for an example with the drop-down:
Let me know if you have any questions or need further clarification. Thanks!

Display Grouped AND Individual labels in Excel Bar Chart

I'm trying to create a chart that contains the percentage of Paid Time Off (PTO) that people have used for the calendar year. Each person is on a specific team, so I would like to group the bars per team, but still display everyone's name. Is this possible? I have 4 teams total.
Example Data:
Employee Name Employee Team % PTO Take for Year
Person 1 Team 1 .2
Person 2 Team 1 .35
Person 3 Team 1 .6
Person 4 Team 2 .15
Person 5 Team 2 .3
The x-axis is 0% - 100% and the y-axis should be everyone's name, but grouped by team. Something like this:
Thank you!
Here's two ways to achieve similar result. You have to prepare the data a bit differently, but it's quite easy to generate this kind of a chart then.
The first way is to separate the teams into different series by separating the team values into different columns. This automatically colours the different teams in a different colour:
The second way uses multilevel categories to achieve a similar result. It's a bit easier to prepare the data based on your current data. But you would have to manually colour the teams with different colours:
I used random to generate the data so chart don't have the same values. I also used reverse axis on both charts and added a blank line between the teams to separate them a bit more. Both are simple clustered bar chart (overlap to 100 and 0 gaps), but make sure that you select the whole range of data, as shown on the first picture or excel will plot only a part of the data.

Resources