How to hide grand total of 0 on cross table - spotfire

I have a cross table that has a switch where I have identified a unique identifier to be true or false. The only problem is when I select true, every single item is selected even though the value is at 0. The reason why is because every single item would have qualified as true at some point in time but have since cleared to being 0. So, I am trying to input a function stating that if a line has a grand total of 0, hide. Anyone know how to do this?
I created a calculated column stating: CASE WHEN [ACCOUNT] = 5000 THEN [AMOUNT] ELSE 0 END. This creates a unique identifier, but only halfway. Every item would have had data in 5000 at its inception, but eventually all gets cleared out. I created a cross table to show what has data in account 5000 and what does not. I built a switch to state: if(${prov}=[prov],true,false)end. And.... If(sum([amount]) over ([item])<>0.00,true,false). The goal is to make the switch to where a false shows balances of items that do not have data in account 5000. That works. However, when selecting true, it includes every item since all items were in account 5000 at some point in time, but are now at a 0 value. I want to hide these 0 values. Is this possible?
End goal: I have a cross table with a grand total set for the rows. Some rows have 0 for the grand total. I want to hide those 0's.
I am unable to give screenshots or real data due to what it is.
This is in spotfire

If you're simply looking to hide the value from your cross table you shouldn't need anything more than the "Show/Hide Items" menu.
You can set it to Hide Equal to 0.00: Sum(amount) and be good to go.
One thing to keep in mind with calculated columns vs. the values that appear in a cross table is that the cross table values are subject to filters you apply while your calculated column is across all your data. This could cause you to think something has a Sum() == 0 when really it's just the subset of your data that does.

Related

Excel - Find all items that share a common cell value

I am wanting to search this list:
The goal is to determine what all is inside Basket 1, determine which item of those costs the most, and return the color of that specific item. My brain is having a hard time determining the right path for this.
With a Pivot Table, you can resume data based on basket # and then filter by most valuable item, and get the color.
The set up for this Pivot Table is all fields into Rows Section, except Amount that will go into values.
NOTE: Even if my Excel language is different than yours, options I'm using should be in the same position. But anyways, besides set up from the image above, you need to apply a value filter (not label filter!), to field ID and make sure choose option TOP 10 and set it to show just TOP 1
If you just want the most expensive item, ignoring Basket #, just remove field Basket from your Pivot Table, and it will work.
Actually you could have 2 Pivot Tables, each one set up in a different way (all baskets, or each basket).

Pivot tables in excel - showing last values

I am having an issue with showing last value.
I have a source table, where is every single day (once) and for each day I have for item 1 total amount in stock.
I put it in pivot table. Column for total item in stock, for each day in month July for example, shows me balance for every day. When I group the month, it shows cumulative amount - which is wrong. I need to show last value.
Therefore I searched for a solution, I found on webpage ExcelJet this.
But when I tried it, for some reason, the date 31/07/2020 shows value 0 on top first, and on top second place the correct value for the last day of month.
Does anyone know why that happens? In source data there is 31/7/2020 with only 9.546.
You are applying the filter in the wrong field. You must apply it to your AMOUNT field, and you are applying it to your ITEM field (the field that holds the value VEL).
This is happening because you are working in the compact view of Pivot Table, and I think it's easier to work in tabular design.
Design the layout and format of a PivotTable
My Pivot Table is like this:
As you can see, ITEM and AMOUNT field are in the rows section. And DATE field in the Values section, set to MAX DATE and renamed as LATEST.
The filter is applied in the field AMOUNT.
I know what you mean, but actually the filter is applied on the correct field/row. See the prtscrn.
For the references, I attached the source table too.
btw, if I tried filtered out the column Note it still doesn't work properly

Is there a better way to store data in subsequent cells per iteration in Excel?

I am working on a rock, paper, scissors project for fun and trying to find a way to store the outcomes of each game in subsequent cells without overwriting the previous events. Currently I've created a lookup function that returns a cell of "win"/"lose"/"tie and 3 columns win/lose/tie. When an event occurs, it references the returned cell and stores the event as 1 or 0 depending on if it happened or not. I have a total count to track (n) events/Total Count.
I've created another column as my Unique Key with a descending number list to 500 which would be 500 Total Events.
Rock,Paper,Scissors End Result:
Workaround:
Win Column: IF({TotalCount}={UniqueKey},(IF({Outcome}="win",1,0),{Self-Reference})
Lose Column: IF({TotalCount}={UniqueKey},(IF({Outcome}="lose",1,0),{Self-Reference})
Tie Column: IF({TotalCount}={UniqueKey},(IF({Outcome}="tie",1,0),{Self-Reference})
Back-end Database Creation:
This allows the cell to only change if the Event Count = The Row which is identified by the Unique Key of Events. This in turn creates a binary True/False database of what occurred. (All cells are still changing but it is self referencing itself if the Event Number is different from the Unique Key)
Is there a better way to do this either in VBA or not? Is there a way to increment without establishing an existing array of 0s? (Currently it you can only run 500 events because I've created the array stopping at 500 events but it would be cool to be able to increment per each event).
*This is my first question!

Create a list of mode values based on table in Excel

I am trying to create a table that will show me the mode of a data set. The data is contained in 3 columns.
Sample Data
Though the actual data set is thousands of rows
I am trying to identify what the most frequent rate paid is for each weight and zone.
I can get an average via a pivot table. I can also have a pivot table show me how many times each rate shows up in each weight and zone, but that is just a count. I would like it to show me the mode rate.
Any ideas on how to work this would be very appreciated!
Update: This is what I need the end result to look like:
Result:
I found the answer to what I needed to do here: https://www.get-digital-help.com/2010/02/11/match-two-criteria-and-return-multiple-rows-in-excel/
I was able to use this formula to create a list of values. From that list I used a mode and min formula to return the mode or min value.
From that I was able to populate a table with the values as needed.
Screen shot of the results.

Report on users who don't estimate well in Excel

I have a spreadsheet corresponding to entries of a user, their estimation, and the actual value (for example: hours for a particular project - again, this is only an example), which we can represent in CSV like:
User,Estimate,Actual
"User 1",5,5
"User 1",7,7
"User 2",3,3
"User 2",9,8
"User 3",6,7
"User 3",8,7
I'm trying to build a report on these users, to quickly see which users underestimate or overestimate, and so I created a pivot table. But, I can't figure out how to simply show if a user has underestimated at some point. I tried to create a calculated field like =IF(Estimate > Actual, 1, 0), but this sums, then compares the Estimate and Actual columns and tells me that "User 3" doesn't over/underestimate.
Without adding an additional field to my data, how can I accomplish this?
A similar SQL pseudo-query would be:
SELECT DISTINCT al.User,
(SELECT COUNT(*) FROM ActivityLog AS l2 WHERE l2.User = al.User AND l2.Estimate > l2.Actual) AS Overestimates
FROM ActivityLog AS al
Edit:
I'm still working on this, and currently have created a static list of users in some cells on the side, and have given them the Array Formulas: {=SUM(IF((A$2:A20 = F6)*(B$2:B20 > C$2:C20), 1, 0))} and {=SUM(IF((A$2:A20 = F6)*(B$2:B20 < C$2:C20), 1, 0))} (if I have the user's name in F6).
Mainly, I want to do this where the list of users can populate dynamically from the main data.
Calculated fields in pivot tables stink. I would get rid of the pivot table and do it with formulas. Start a unique list of users in H15 and enter this in I15
{=MAX(($A$2:$A$7=H16)*($B$2:$B$7-$C$2:$C$7<>0))}
array entered. This will return 1 if they ever over or under estimated and zero if they never did. The downside is that you can't "refresh" it like a pivot table so you have to make sure your unique user list is accurate all the time.
If that's too big of a downside, I think you'll need to add a column to your source data. Specifically
=ABS(B2-C2)
And add that to your pivot table. It will show zero for never over/under and non-zero otherwise.
You are aware that you should make sure the estimates are all in the same range? Smaller numbers can be estimated better (when talking about hours).
Add a column for actual-estimate
then summarize those values for min max and average. (or stddev)

Resources