I added two columns to my pivot which calculates sums of hours like this :
I would like to add another column which is based on those two new columns, that calculates their quotient 'Sum of Avail Hrs'/'Sum of Eff Hrs' but couldn't find how to do it.
Please help!
Thank you
(There is a question asked a bit similar to my issue but there is no answer to it.)
You need to create a calculated field to do this.
In that pop-up box, you can create the formula you want.
Then add it to your pivot table.
Related
I am new to DAX and Power Pivot, I apologize in advance if there is a similar thread I did not see. I am using Excel 2016, I need to use USERELATIONSHIP in the CALCULATE function to use an inactive relationship in the data model (I need it for a slicer).
I am using this formula =CALCULATE([Count of Fiscal Week Identified],USERELATIONSHIP(Table[Fiscal Week Identified],Week[Week])) to create a calculated field I need to add to a pivot table.
I just need Excel to generate the pivot table on the left in the screenshot using a calculated field inserted in values, and the field 'week' in rows (having an inactive relationship in the data model). When I tried using the formula above, I get the table on the right which is completely different from the table on the left, and I cannot figure out why... I need this to include the pivot table in a slicer. Any help would be very much appreciated. Thank you in advance!
Regards,
The problem is that even though you are creating column using USERELATIONSHIP, the relationship isn't active when this column is evaluated in Pivot Table. So you need to use a Measure. Is the below the expected result?
If yes, then create a measure like this:
Please help.
Simply put I am trying to get the calculated column in table 3 to display the participation number from table 2. Need it to filter by name and date.
The formula in the calculated column is my attempt which doesn't work.
Any help or questions would be appreciated.
One way to do it would be:
=LOOKUPVALUE(Table2[Participation Num],Table2[Name],Table3[Name],Table2[Date],Table3[Date])
I'm processing a bunch of results from a google forms result spreadsheet into an excel spreadsheet (making nice graphs and charts) but I cannot figure out how to process the multiple choice question answers in the way google provides them.
In the image below you see some example results. The rows represent one person who filled in the form. The column name is the question itself and in the cells you'll see the multiple answers a person selected (checkboxes).
Now I would like to get an pivot table with the total percentage of times an answer is chosen.
I also made a small table with all the answer possibilities (see image below) but still can't figure out how to get the total number or percentage off occurrences of those answers in the other table.
Can someone tell me how to make this pivot table in a fast en efficient way, i have a lot more of these type of answers and questions to process so i can't go and type every possible answer in a table.
So this would be the desired result:
Thanks in advance!
Found the answer here:
Formula in Excel to count occurrences of substrings within strings
Basically, you need to search for a substring within a list of strings. This is the equation to use.
=COUNTIF(D2:D7;"*"&<answers>&"*")
I can't comment, but it sounds like you would benefit from using the Calculated Field feature of a pivot table. See this page Excel Pivot Table Calculated Field for more information. I would also suggest showing how exactly your data is stored. Is each answer in its own column? I hope so because that is much easier to deal with than the one column with the comma-separated Answer 1, Answer 2. Although, it's not too hard to create new formula-driven columns that separate the answers.
Back to the subject at hand, a formula in the Calculated Field would be something like:
Name: PercentageAnswer
Formula: =CountofQuestion/CountofPerson
Note that the Pivot Table should be formatted so that the rows are the "Question" header, with each row being an answer, and CountofPerson and CountofQuestion should be columns.
So I got this excel file with a lot of data which is why I want to avoid doing all this manually. Basically what I want to do is find all values that is the same in one column and then combine all it's values to one row.
If I have this data in a worksheet.
I would like the output to be like this
I appreciate all the help I can get.
EDIT:
This is what I get from a Pivot Table
When I actually would want it to look like this.
You must use Pivot Table function from (i recommend it) MS Excel.
It lets you to set wich columns becomes rows, what type of values they will contain and much more.
Pivot Tables are what you want.
It saved my career at my previous job :)
Here you got some screenshot of example for making sums for all duplicates in first column:
original table:
How does acalculated column work in Sharepoint? When a calculated column is added to list, the next moment it'll update the list items. How does it happen?
Calculated columns in SharePoint 2010 are similar to formulas in Excel spread sheet. Their result is attained by writing formula that uses the values of other columns (their names). There are all sorts of formulas to perform calculations as pointed out in the Calculated Field Formulas –msdn page, with example and possible result. You could also check the two links below that show steps of how to achieve a calculated column:
SharePoint: Creating Calculated Column Formulas
About SharePoint Calculated Columns
Hopefully, this will make things more clear.
Short Answer: it updates the value when you save an item OR when you change the calculation in the field setting
read this very interesting post. discussion in the comments section is very interesting.
Calculated fields are stored in Database and they are updated when you save an input.