Is there any way to make a vertical table with Tabulator? - tabulator

When I say "vertical table", I mean with headers down the left side and each set of data displayed as a column beyond that.
I tried changing the data so that rows are columns and vice versa, but ran into issues with formatting, as for example I couldn't see a way to apply number formatting to each row rather than to each column.

Tabulator only allows for column headers along the top of the table. There is currently no plan to allow for column headers down the side of the table.

Related

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.

Conditional coloring in excel/pivot

Hi,
I am trying to set up a sheet, where I analyze and compare data within' a pivot table (on the left) with data extracted manually from a data source (on the right). Assume that the table on the right is a portfolio, and the table on the left is a stat overview of all possible positions. Column "S" is given as:
=IF(ISNA(MATCH(O7,$B$7:$B$119,0)),"", "MISA")
which basically lets me know if my position is on the list on the left, and column "A" similarly is given as:
=IF(ISNA(MATCH(B8,$O$4:$O$19,0)),"","1")
which lets me know whether the asset within the list is held in the portfolio.
So my inquiry now, is basically that I would like the list on left to have its row colored, whenever the asset is held in the portfolio, thus whenever there is a "1" in column "A", then that particular row should be colored. I have naturally played around with the conditional formatting, but cant seem to get it to work. Dont know if it is due to the fact that it is a pivot table vs. the function in column "A"???
Thanks,
Psb
Please make sure that your range does't have '$'before the range column and row numbers. '$' refers to static values. So in my below screen, '$A4' indicates to Static column which is A and dynamic row number. Similarly the area on which rule has to be applied is dynamic, which refers from 'B4:G23' cells, so whenever A4 =1 then 'B4:G4' will highlight. similarly A5=1 then B5:G5...
PS:Please note i didn't apply the rule on any pivot table but just on a normal range. The same thing should hold good for pivot table also.

Is it possible to get an excel chart with possibility to select the graphs to display?

I have several data in excel sheet and I wonder if its possible (through macros or something else) to select the data and display the series needed.
I'm not quite sure if I explained the situation correctly...
But I have multiple curves, and instead of plot the average curve or single curves, I would like to have the option to plot: curve 1, curve 2, curve 3, average curve...
Kind regards,
DNA
My preferred way to do this is with a combination of a couple of ideas. In general, Excel charts are easiest to maintain if they are looking at a simple range instead of complicated named ranges. Given this, I like to create a simple column of data for the chart and then use other Excel features to modify that column of data.
Note that the steps below are for a specific case of a block of data all on one sheet. There are a ton of variations that you can do to make this work for other configurations. The idea is simple: create a new column of data for the chart and use normal formulas to get the data there. You can make the x-axis a selector as well.
For the simple case of a common x-axis with varying series for the y-axis all in one block of data, I do these steps:
Start = block of data
Add a column header off to the side which will "drive" the selection. I like to make this a Data Validation drop down so that the selection is correct. I did this in G2, selecting the column headers as the Source.
With this in place, you can use the selection there to update the data in the column below it. A simple formula for doing this uses INDEX.
Formula in G3, copied down to end of data: =INDEX($C$3:$E$25,,MATCH($G$2,$C$2:$E$2,0))
This formula works by finding the column name in the list of column headers and returning that column of data. Since the row selection is blank ,,, it relies on the relative position of the cell which works since everything is lined up.
Once this is done, you can then create the chart simply using the date and the new column of data. It will respond to changes in the selector which works nicely. If you use the column G header as the series name, that will update too which is a good effect for free. Below is the chart showing the ranges it is using.

Is there an easy way to reformat a poorly-formatted tree to a two-column table?

I have a table representing a series of components and their subcomponents, and the subcomponents' respective subcomponents, and so on. It currently looks like a tree (one-to-many relations), but it could change at some point to resemble a graph (many-to-many relations) instead. Unfortunately, it was poorly formatted by its author, and looks something like this:
The above format is poor because there is a lot of data duplication and it is limited to a set number (4) of tiers. I would instead prefer if it looked something like this:
The above format is nice because there is very little data duplication, and it is not limited to a set number of tiers.
In case there is any confusion about what the tables represent, here is a graphical representation of the data:
It is simple enough to convert from the poor format to the nice format, but there are hundreds of root components, and manual data entry would be far too time-consuming and tedious.
I suspect this problem is unique and I am prepared to write some VBA code myself to parse the table into the nice format, but I thought I'd make sure that this wasn't a common problem with a pre-rolled solution before I rolled my own.
Is there a technical term to describe the poor formatting in the first table? Is there an easier way to reformat the data than to write a VBA macro?
This may be a complete aberration but it works for your sample (and at the moment I don’t have time to break it!)
Add an index (and a label for it) and reverse pivot (eg see An excel formula to find a row/column index in array).
Instead of drilling down on the Grand Totals intercept, drill down on each of the totals for the Tiers.
Reassemble the tables side by side, delete all columns except the Value ones and copy table to another area with Paste Special Values. Remove Duplicates on the range. Every time the value in the column immediately to the right does not change, delete and shift the values in the cells to the left. Reorder the columns right to left.
I copied each pair of adjacent columns in the Tier table (Tier 1 & Tier 2, Tier 2 & Tier 3, Tier 3 & Tier 4) and pasted them stacked vertically into a single pair of columns (Subcomponent & Component).
Next, I removed duplicates by selecting both of my new columns and clicking Remove Duplicates in the Data ribbon tab.
Next, I had to remove all rows which contained a blank cell in the Subcomponent column. To do this, I selected both columns again and filtered the data by clicking Filter in the Data ribbon tab. I selected (Blanks) in the Filter menu on the Subcomponent column and deleted all visible rows. I removed the filer by selecting (Select All) in the filter menu.
The resulting table contained many blank rows, so again I removed duplicates, and then manually shifted the data up one row to displace the one remaining blank row.
In the end, it took about a half hour, which is probably less time than it would have taken me to code a macro, and definitely less time than manual data entry.

Reporting Services 2005 Hide Columns Only in Certain Table Groups (eliminate white space)

I have a report (rdlc) that has a data set that has row grouping based upon certain field values.
It is set up to appear as separate tables for each grouping.
I now have a requirement to display a column for only one of these groupings.
For example, if value = a then show a column in the grouped table.
If value <> a then do not display this column.
I have tried several visibility techniques but cannot get the column to show in only one grouping.
The closest I got was to show the column in the required grouping, but it left white space for the column within the other tables.
Has anyone successfully tried anything similar?
Thanks for any and all assistance!!!
A table in SSRS ( and many other systems) must have the same columns for every row, and the same rows for every column. You can merge some of these, but that won't accomplish what you want: changing the number of columns for only some rows of the table.
I would separate this into multiple tables. Use the filters property of the different tables(tablixes) to filter each table to only display the appropriate rows if you would like to keep your current dataset.

Resources