YUI3 Datatable - Drag and Drop columns, function getTbodyEl does not exist - yui

I'm wondering how can I make the order of the columns sortable in a YUI 3 Datatable.
Following an example where rows are sortable I found that I have to create an instance of Y.DD to each row. Trying to do the same with columns, but the function getTbodyEl() does not exist.
Has anyone accomplished this? Help is appreciated

Y.DD is Drag and Drop. This would help only if you want to drag the columns to sort them.
This is one way of programmatically sorting the columns.
I haven't read the documentation for Y.DataTable, but you can sort the columns attribute, subscribe to the columnsChange event and then make the datatable re-render*.

Related

Excel Filter(Filter()) Function. Filtering an array by columns and by rows based on dropdown selection

I have a table consisting of multiple rows and 7 columns. Many of the cells are empty.
I would like to create a summary table from that table, in which I filter for 2 columns using the Filter() function. Then the third column is filtered from a dropdown menu. I manage to get that using:
FILTER(Table1;((Table1[#Headers]="Checklist Item 1")+(Table1[#Headers]="Responsible")+(Table1[#Headers]=Q6)))
where Q6 is my column dropdown.
Now the summary table is a dynamic array, all nice and good, but it contains all the blanks.
Now I would like to remove all the blanks. I manage to do that, if I nest the Filter function in another Filter function, that filters for rows, like this:
=FILTER(
(FILTER(Table1;((Table1[#Headers]="Checklist Item 1")+(Table1[#Headers]="Responsible")+(Table1[#Headers]=Q6))));
Table1[S]<>"")
But I hard-coded the last filter part here where I filter for Table1[S]<>"". Instead of hard coding that one, I would like pick the column to filter from from a drop down in cell Q6. Something like Table1["column chosen in Q6"]<>"" but I cant get the syntax right.
Any ideas? I've been hard stuck for quite a while. Thank you.
Example image in below link
(note, my Excel uses semicolon instead of comma for argument separation)
See Example Image

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]))

Microsoft Excel get Count of Distinct Values

I am trying to use excel to get a count of distinct values, the following screenshot will illustrate what I am trying to do. Data Screenshot
Given data in the form on the left column I would like a way to display the occurrences of each distinct value on the right.
I have used the Outline Subtotal grouping to do this but it does not present the data in a form I can work with. I am by all means an Excel novice, any help would be appreciated
Thanks!
Use a pivot Table. Put the column in both the Rows and Values:

How to make cross table in p:dataTable primefaces jsf?

I must make p:dataTable which have 6 columns and 3 permanent rows. Each of the row must have own name, it will be in first column and in the others columns, cells can be editing but this is not a problem. Is anybody know how to make that kind of table? I tried with p:panelGrid but it can't be editable. I post sample picture of that table. Thank you!
http://img89.imageshack.us/img89/6823/v94s.gif

Cognos Headers/Footers

Does anyone know if it's possible to have more than one Overall Footer in a list? I am building a list that contains a 3 row table in each column, and the list is grouped by product. I would like two of these rows to show as overall totals for all products in the list. I have added an Overall Footer for one, which is summing correctly. I had to use a List Page Footer for the other which is returning the last amount in the list instead of summing. I tried to use 'Summarize' but since each column contains 3 separate rows of data, I'm not sure if this is possible. I'm trying to avoid creating separate data items for each column that will sum by product (ie total(Sales for Product)) because I have lots of columns and that will equate to lots of extra data items.
Any help would be much appreciated. Thanks!
You can have more than one header/footer row within a list. Click the list, then go to the 'Headers/Footers' button just to the right of Section/Pivot and add additional header and footer rows. By default they add as one merged row, but if you select if you can unmerge it into individual cells.
Hope Im following you here for the next part...
If you want to repeat the overall totals in one of these footer rows in the child table, I would do it via singletons. Having a parent/child relationship may force you to create an additional query which is just the total values. Then have the singletons reference that new query, not either the parent/child.
Unlock the report, drag block/s in the footer where you want to repeat the summary data, drag your data items inside the block.

Resources