Updating a pivot from another table - excel

I am trying to get a pivot table to show a value from another row or table when it has either a no data or unknown. I can get it do work in the data table using an index/match but this is very slow and takes a lot of time, I have tried a calculated field but it is not working and have created a table with just the data I am looking to use is it is bank or N/A, still no joy
I have thisenter image description here
but would like it to look like enter image description here
Any ideas?

Related

Adding a formula in a self referencing table power query

Hi I'm still new to power query and I'm still trying to understand how it fully works.
The goal that I'm trying to achieve is to create a table that list my employee data (ID, name and location) from a database and adding several columns to the side for another department to fill in the details. Currently I have made this using a self referencing table.
However some of those added columns are using formulas to calculate certain values. I added these formulas in excel, not in power query. The reasoning for this is that the user can see the values update immediately after inputting in the columns. In doing so whenever my query is refreshed, these formulas will get overwritten with values, and when new values are added or changed the totals aren't updated.
I know I can add these formulas in power query, but this will lead to the values not updating automatically, unless it is refreshed after each input. I also tried adding the formulas as string in power query, but it does not change into a formula automatically, it needs to be entered in each cell to calculate.
Current excel setup, in here the first 3 columns are from original database, and the rest are added columns that users are manually inputting through here. And the final column contains the formula to total the values of each row automatically.
Any ideas or tips on how I should change this?
Edit1: By self referencing table I meant something similar to this. Where a column is added to the side of the table and is able to keep track to the corresponding ID.

Get data source row number of Pivot Table Active Cell

I need to find a way of determining the row number from the data source table of the selected cell in my pivot table.
The reasoning behind this is that I want to be able to edit/update the values from a UserForm.
My table with the data source is in sheet 1 named Data and my pivot table is in sheet 2, named Project management.
I know I can edit values in a Pivot Table by setting
EnableDataValueEditing = False
..but this does not give me the desired result since my original data remains unchanged and I also have hidden columns that I use for conditional formatting only and it would be a bad user experience to have to unhide the columns every time I need to edit them.
Does anyone have any idea or suggestion as to how I can retrieve the original data row number for a specific cell in my pivot table ?
As an example, the top is my original table and the bottom right is my pivot table. When the cell "Dummy Data" is pressed, I want it to give me the Row number of that data from my original table.
A "bad" workaround would be to use VBA to match the selected cell
value with the data from the table and when the match is found,
retrieve the address but this is not foolproof, the data should be
unique but with more data flowing in over time, this might not be the
case anymore. Therefore I am trying to avoid this method.
PS: if someone could edit my post and embed the image, I would highly
appreciate it.
A pivot table is a report summarizing information from the linked table or query. The only ways you're going to be able to update the information is if you know the row ID/number you want to change or filter the data source down to a point where you can identify it.
If you're going to be keeping and altering records, I'd suggest building a database (Access, for something quick and easy) to enforce some form of integrity and then link your pivot table and form to that database.
EDIT: VLookup or Index(Match(...)) is only going to return the first hit and that may not necessarily be what you want.
I will put my non-orthodox but perfectly functional way of doing it just in case someone is facing a similar issue or until a better way arises.
I have actually added a new column in my data table with the formula
=ROW([#Column1])
This gives me the row number for every entry.
Next I am just adding that column as a row in my pivot table, display in tabular mode to have it's own column and hide it. Therefore when selecting a cell, I am looking in the hidden column for the number and therefore I am getting the source data row number.

How to generate total for each section in a column in pivot table on Qliksense?

I'm new to Qliksense and I'm trying to generate a table as shown below. Using the Pivot table, I came up with getting near the structure, but could not add the Total row for Amount as shown for each unique value in Name. How can I add that?
Expand the dimension tab under Data about halfway down you'll see a slider to put totals on and off.

Get slicer selection of a data table

I have been struggling with this issue in the past days and haven't found yet any solution.
I have a simple table (not a pivot table) and some slicers attached to it. I want to 'simply' show selected value/values of the slicer in a cell. It implies of course to make the cell update automatically according to the selection.
Some of the solutions I found suggested using two pivot tables, one main for the regular data and the other hidden to capture the selected filters. The problem is that I am not working with a pivot table, but rather a simple table.
I also tried getting distinct values of the table column, but I couldn't perform it properly without getting the hidden values of the filtered table too.
Is there any way in Excel to do this simply?
Thank you!
You can follow the below steps to achieve your result
You will have to insert a serial number column in your table
After that insert the below formula above the header or anywhere you want to display the selected value
The formula in C2 is
=INDEX(Table1[Data 2],SUBTOTAL(5,Table1[S.No]))

How to generate a column in pivot table

I have a small challenge in excel.
Let's say I have a column called impressions and other column called cliks. I want to display the click rate on a pivot table (click rate is the ratio between clicks and impressions).
I tried (almost) everything, and unfortunately I am not being able to do it :(
As you can see from the image, I can manually calculate the click rate, however I am failing in do it inside the pivot table...
and this is how a calculated field is generated. Thank you JosieP, for your helpful comment.

Resources