How to add target line to a pivot-chart? - excel-2010

I have a resource allocation report that automatically generates each week based on a bunch of monthly data. The data is summarized in a PivotChart with slicers for different column values (Name, Role, Project, etc). The chart shows the units allocated for each role, for each month for the next 13 months:
Resource Allocation PivotChart
Basically, I want to add a target line to this chart. I've tried a couple different things.
With other projects, I've succeeded in adding a target to PivotTable data by adding the target value in a column next to the PivotTable, but that won't work with this report because that method forces me to use a regular chart instead of a PivotChart so I can't have the slicers (which I need), and the PivotTable changes shape a lot so it would overwrite the data as different slicer options are selected and as new values are added to the data each week.
The closest I've gotten to adding the target into the chart is by actually creating a new line item where the Role is "Target" and the value for each month is the target value: Target line item. I can even change the data series type to look like a target line: PivotChart with target line. The only issue is that "Target" now shows up in the role slicer.
Is there any way to hide "Target" from the Role slicer when it HAS data? Or is there some other way to add a target line to this PivotChart?

You could create a grouping column where RoleGroup is the same for both the Role and the Target, and use that for your slicer instead. That way you are effectively selecting Role and Target at the same time for any set of values.
Another alternative would be to convert your data to a "long" format, that looks something like below, and then you can drop Value and Target on the Measure shelf of the pivot table:

Related

Dynamic/Dependent Dropdown List Without Apps Scripts

I didn't want to use Apps Scripts at first because I was too lazy to learn it but now I find it Way more fun to try and wrok around the limitations of using formulas only.
PROBLEM:
So I'm trying to do is to make a Dynamic/Dependent Dropdown List without Using Apps Scripts.
SOLUTION:
Using INDEX To Change the C Column based on A2's Value, And make B2 Dropdown list from C:C
SOLUTION's PROBLEM:
So the plan is to make these Dynamic/Dependent Dropdown List in every Row, Thus needing a Column for every row.
SOLUTION's PROBLEM's SOLUTION:
Using TRANSPOSE we can make the list change from Vertical to Horizontal
THIS WORKS GRRRRRRREAT, this means that each row will have its own list on the same row AND if the list becomes longer, the TRANSPOSE function will add columns by it self as needed... but there's a small teeny tiny pet peeve with it.
SOLUTION's PROBLEM's SOLUTION's PET PEEVE:
So I want the sheet to look good, I don't want the data holder cells to show, so I can simply hide the columns... BUT if the list gets longer, it will add columns and they won't be hidden
SOLUTION's PROBLEM's SOLUTION's PET PEEVE's SOLUTION:
I found that if you group the columns, it gives you a little button at the top that if you click it then it will hide all the columns in the group, And if you includ the last column in your sheet in the group, then any new columns will be added to that group.
...... Okay last one I swear.
SOLUTION's PROBLEM's SOLUTION's PET PEEVE's SOLUTION's PET PEEVE:
It's true that it will group any new column will be added to the group, BUT it won't hide them.
If you just double click the -/+ Button then it will hide them... okay I lied about it being the last one.
SOLUTION's PROBLEM's SOLUTION's... Problem....... ah who cares
Having the columns grouped does make it easier to hide any new columns, but i'm not looking to make the manual easier, I want to fully automat it... also I hate the big bar that's always there when there's a grouped columns.
Unrelated Fun Fact: did you know that using the comment function returns a 0? I didn't...
so isblank in =isblank(J20 + N("This is a comment To say that J20 is indeed blank")) returns FALSE
TL;DR I'm looking for a way to auto hide any new columns created after column D for example OR use another cleaner way to make Dynamic/Dependent Dropdown List without Using Apps Scripts.

Target table length not updated even when the source column length is updated

I had to change some of the column lengths in the source to a higher value in information, but I am still getting the same length as below and it looks like it was not updated. source and target are both oracle tables. Do I need to reimport source tables in information after changing column names?
Thanks in advance
You need to propagate the change across your mapping. Just right click on the attribute and select Propagate Attributes

When using QUERY, how can I make it so that data moves together when using filter?

I am creating a tool for a video game I play.
Link to the example spreadsheet (Please make a copy to edit so that this copy stays intact for additional helpers).
Sheet 1 is “Choose Owned”. It contains a list of all of the champions available in the game and includes their attributes.
Column A contains checkboxes. Checking a checkbox indicates that the user owns that champion, and brings it to Sheet 2.
Sheet 2 is called “Owned”. It contains a list of the champions checked off in “Choose Owned” (aka the champions the user owns). “Owned” includes the champion attributes too, as first seen in “Choose Owned”.
Beyond those same attributes, “Owned” contains 8 additional columns.
These columns are from Columns G:N and are labeled ‘Level’, ‘Rank’,
‘Ascension Lvl’, and ‘Team Label(s)’ (‘Team Label(s)’ takes up
columns J:N). This data is all unique information and requires the
user to input the information themselves depending on their
champions.
Because there are so many champions, I want the user to be able to use the Filter function in “Owned” so they can easily locate the champion they need or sort the table however they wish.
However, because I use the QUERY function to get the data from “Choose Owned”, the Filter function tends to break. The most obvious error comes when you try to sort A-Z or Z-A; this simply cannot be done. I was fine with this, and have even included a note at the top telling the user to avoid sorting alphabetically.
Everything else works correctly until the user tries to add a new champion from “Choose Owned”. When the champion is added to “Owned”, the additional, unique data in columns G:N go out of order because they don’t move with their original champions.
Example:
I choose my champions. These champions are copied to “Owned”.
I pick their relative data in columns G:N.
A few days later, I obtain new champions and check them off in “Choose Owned” so they are added to “Owned”. However, when I do this, the champions stay in the same order as they are in “Choose Owned”, and columns G:N do not move with their champions so now, that information is with the wrong champion.
I want the additional data (G:N) to move with their champions when the table is edited due to champions being added. Or, in other words, I want those columns to stay linked to the first columns.
If there is a different way to achieve all of this like if I have to use a function other than QUERY, that is fine!
Please share any solutions you may have. I would prefer to not use a script but will consider the idea if it works.
this is a common issue within Google Sheets and it's solvable in 2 ways:
either by introducing a common value (unique ID) and then linking the manual input to query and aligning it by ID
or easier approach in your case - using timestamp/linear ID so every new entry would be added to the bottom and then the query would be sorted based on this order.

Automatically updating Data Validation lists based on user input

I have a very large data set (about 16k rows). I have 10 higher level blocks and within each block I have 4 categories (10 rows for each) which use Data Validation lists to show items available in each category. The lists should automatically update based on user input. What I need your help with is that I want to use the same data set for each block and preferably a least calculation/size intensive approach. I have put together a sample file that outlines the issue with examples.
Sample File
Thank you for your help in advance.
Okay, I've found something, but it can be quite time consuming to do.
Select each range of cells. For instance, for the first one, select B3:B18 and right click on the selection. Find 'Name a Range..." and give it the name "_FIN_CNY". Repeat for all the other ranges, changing the name where necessary.
Select the first range of cells to get the data validation, and click on "Data validation", pick the option "Allow: List" (you already have it) and then in the source, put the formula:
=INDIRECT($G$4&"_CNY")
$G$4 is where the user will input. This changes as you change blocks.
_CNY is the category. Change it to _CNY2 for the second category.
Click "OK" and this should be it. Repeat for the other categories.
I have put an updated file on dropbox where you can see I already did it for the data of _FIN for categories CNY, CNY2 and INT and did the one for _GER as well. You'll notice the category of INT for _GER doesn't work, that's because the Named Range _GER_INT doesn't exist yet.

How do I use Macros to copy select data from one worksheet to another on Excel?

I need to create a Macro on Excel to keep track of changing contracts. There's already an existing macro that updates the contract data so I need to create another macro...
There are two worksheets. On the first worksheet is a bunch of data with each row representing one contract. There are several categories (Contract #, Date, Price, etc.).
I need to write a Macro that finds only certain contracts fitting specific criteria (like, contacts at a specific date or a certain price), copies and pastes them into the second worksheet.
What I've done so far:
I've figured out a bit of a convoluted way of doing it using IF and OR functions. So using OR I specify the criteria and IF to basically find the corresponding data if things are TRUE.
When things are false, a 0 is entered. The problem is I have tons of rows of zeroes---rows/contracts that didn't fit the criteria. When I try to use the find command (CTRL+F) to find, highlight, and properly delete (with rows shifted up) all the zeroes, Macro doesn't record it and I'm not sure how to write it in the code.
Any insight would help!
Just change your formula to:
=IF(OR(TermSheet!$E40=41220,TermSheet!$M40="bpxx"),TermSheet!E40,"")

Resources