Sheets - Dropdown list based on items value - arrays

In google sheets from the table with items and its availability, I'd like to create a drop down list in a way to see only available items - so as in example on the drop down list i'd like to see Items A,B and E only, preferably with the corresponding quantity.

put this formula in Z column and create dropdown via data validation from there referencing Z column (then you can hide whole Z column > right click on column > hide)
=FILTER(A2:A; B2:B>0)

Related

Single cell selection as input in ag-grid

I am using ag-grid in an angualar project to display a list of input parameters for a user to select. However, so far I am only able to show this list as distinct rows. And every time user has to select one cell, he has to select the entire row. I have not found any single cell selection as user input in ag-grid documentation so far. Any other ideas?
This is how I would like to have my UI look in angular using ag-grid so that the user can select one or more cells per column (Data category) as input
Data Catagory A
Data Catagory B
Data Catagory C
ParamA_1
ParamB_1
ParamC_1
ParamA_2
ParamB_2
ParamC_2
ParamB_3
ParamC_3
ParamB_4
But currently, this is all I have come up with - distinct separate rows per input value for each of the columns :
Data Catagory A
Data Catagory B
Data Catagory C
ParamA_1
ParamB_1
ParamA_2
ParamB_2
ParamB_1
ParamB_2
ParamB_3
ParamB_4
ParamC_1
ParamC_2
ParamC_3
And subsequently, the entire row/rows are selected as input by the user.
Most of the ag-grid documentation talks about row selection or range selection, but I couldnät find anything that talks about multiple cell selection in different rows and columns (not a range of cells)

Link two cells in google sheets with autofill

First of all I would like to thank you for your time.
I have a google data studio report that extracts data from a google sheet. The data studio sheet gets values from a google form (in the form of another tab in the sheet). Altough the cells are linked, right now I have to drag the cells in the data studio sheet to pull the values from the forms sheet. If there are no values it can´t pull anything and I would like to have real time values in the google data studio as soon as a form is filled.
Right now all I have is a simple (='Form '!C55) to pull. What I would like to do is if there is a new value in the following cell in the forms sheets then the following cell in the data studio sheets pulls it so it can go to the report in dat studio.
Cheers to all!
Try this formula, in column A, after your last row of good data. So perhaps in Dados!A91. Note you will need to first delete everything in all of the cells below and to the right of A91, since this formula is filling everything:
=QUERY('Formulário '!A9:O;"select A,G,D,J,M,H,E,K,N,I,F,L,O where B <> '' ";0)
This queries your Formulário sheet, and pulls all of the data starting in row 9 (since that is what you were showing with your formula before), and selects all of the correct columns in order.
Please test it out with a test form submission, to see that it works as expected, and that it is copying the correct columns, in the right order. Let me know of any questions or issues.
I'm not positive how sheet updates work when there is no active user logged into the sheet, but I suppose when Data Studio goes to pull from Dados, it will first ensure that it has the latest data from all formulas.
Update
To have the Max and Min values,which you say should be the same all the way down the column, add a formula like the following in the header row (row 1) of your Formulario sheet:
={"Cloro Max.";ArrayFormula(IF(LEN(A2:A);1,5;""))}
That gives a value of 1,5 for a column labelled Cloro Max. Be sure to delete anything from row 2 down, in that same column, or the array formula gives a #REF error, since it can't put data when there is already data entered in those lower cells.
You can change the text to create a Max or Min column for each value you want, in columns Q to V. Change the 1,5 to whatever number you want, such as 0,5 for Cloro Min.
It will always add the value(s) to each new row as it gets added from a submitted form response.

How to count unique occurrences with criteria in excel

I'm using the below array formula to count the unique occurrences of text in column C using the agent name in column G as the reference. This is giving me multiple issues.
=SUM( --(FREQUENCY(IF(G3:G100000 = J5,MATCH(C3:C100000,C3:C100000,0)),ROW(C3:C100000) - ROW(C3) + 1) > 0))
Depending on the data set I'm using multiple agents will return a #N/A result and I can't figure out why.
Each dataset I'm using is 20k to 30k lines, so the formulas take a long time to process.
Any ideas how I could do this faster or better? Also any ideas why some agents get bad returns?
I am assuming that you are looking for the number of unique combinations of columns C and G.
Create a pivot table and check the box to add this data to the data model.
Drag both column headers to the Rows section, also drag one (of those same two) into the the values section.
click on the the field in the values section > value field settings > summarize values by > choose Distinct Count. This removes all duplicates.
Click the Row Labels filter and uncheck the blanks.
You can drop in new data then right-click on the pivot and refresh to see the new results. See the image.

SSRS: Grouping column data sorting by A to Z

I've made one grouping with "Name". Now when I retrieving the data from Dataset it shows something like this,
Eadadfadasdas
Masdadadad
Dadasdasdad
Sasdadadasd
Asdffff
I do not want to change the order In Dataset. Is it possible to do it with Expressions in SSRS Report.
I want the result like this,
Asdffff
Dadasdasdad
Eadadfadasdas
Masdadadad
Sasdadadasd
Thanks for your time and help.
In the SSRS table (which I assume you are displaying this data in) YOu need to sort by the Fieldname as follows
Right click the Row Header and click Row Group -> Group Properties
Then select the Sort Tab and set the Column to sort on to be your Column Name as shown
This will display your data in alphabetical order
Click on the Group Properties for 'Name'.
Under the Sorting tab, sort by name A-Z.

How do I hide a matrix column?

I have a matrix in SSRS 2008R2.
It has the following features:
2 Row Groups (X,Y from let to right as you look at the report)
1 Column Group (Date)
Y is toggled via X; and when first rendered Y groups will not be visible
I'd like all column Y to be initially Visible=False, then if a user expands any of the items in column X, say group item Q, then column Y becomes visible, and all the items in Y associated with Q are also visible.
I understand about using the (Static) columns to expose the column vibility property and I've created a Boolean variable IsYvisible, and used this in the property so that there is now a radio button which switches the column visibility - I want the visibility of column Y to be toggled whenever a user clicks on any of the "+" signs in column X.
Select the tablix and right-click the grey button at the top of your Y column, then select 'Column Visibility'.
Use that for your hide/show/display toggle settings, it sounds like you hid the text boxes inside the column resulting in your blank space.

Resources