I'm looking to format height data so that I can filter based on an entry. Below is the table I'm working with. I'd like to be able to filter by height, for example >= 6' 9". Can this be done without converting to inches? I looked into dash_table.FormatTemplate but am not finding an answer. Any help would be appreciated!
Also, I've added in the filtering code needed. For example, I can search for players that make more than $10,000,000 by typing >= 10000000.
Related
Picture: Sheet Document
OVERALL EXPLANATION OF DOCUMENT AND WHAT IS WHAT:
I have a Google Sheet document (Picture ↑) with
Products (Product Category and Name) - Columns B:D
Prices (Weight, Prices with VAT and without, Packaging) - F:Q
Additional Info (Manufacturer, Supplier, et.c) - Column R, S and next ones
From time to time for example as it is visible in the Row 7, I need MAX PRICE for all the same products.
I achieved that with formulas:
Picture: F7
Picture: N7
These two formulas work and does everything I need. So no problem here.
THE PROBLEM
The Problem sits in R7 and S7 (I highlighted them in picture named "Sheet Document").
I found formula that works:
=SUBSTITUTE(textjoin(", ",true,unique(filter(R4:R,$C$4:$C=$C7))),", 0","")
It combines all unique Column R values that mathces all the C7 values.
This is how formula should look like.
Picture How it should be
Problema is - it works only with Iterative Calculation - ON.
Why it is a problem?
Each time I want to add this formula to another cell (I'm planning to add it manually, because there are specific instances where I need to know combined info about the specific product), it duplicates everything (See GIF below) ↓
GIF: GIF - Problem - Duplicating
I think it is because of Iterative Calculation, I have never seen any formula act this way before.
What can be done here?
Maybe use other formula for R7, S7?
I have tried a lot of - Vlookup, Index-Match, Query, the only one that worked exactly as I wanted was Substitude-Textjoin-Filter, but yeah, Iterative Calculation meses it up.
Maybe I need to change all the other formulas?
I know that with the Circular Dependency Error, you should look for overlapping formulas. In the OVERALL EXPLANATION section you can see how other formulas in the same row are made. I couldn't figure out the one that was overlapping.
Maybe some App Script can solve this?
I'm very new to scripts, have used in some documents, including this one, I am open to using them, just need little bit more explanation.
I tried a lot of different formulas, tried to solve Iterative Calculation glitch, changing formulas in other cells so they are not overlapping.
Use a mix of absolute and relative references, like this:
=textjoin(", ", true, unique( filter(R$4:R6, C$4:C6 = C7) ) )
The formula should go into cell R7. You should turn off iterative calculation if you can.
I have a Sheet which I would like to use as a simultaneous sign up for many people for timeslots for an event. We have noticed that what can happen is users erasing each other's entries in the sheet. Ideally we would like to make it so once someones name is entered for a timeslot it cannot be removed by other users.
I've tried to use data validation to reject certain criteria, but I've only managed to get it to reject a cell changing from blank to a non-blank value. Which I achieved with the following:enter image description here. But I'd like the opposite behaviour, with some additional functionality
Changing the formula to NOT(ISBLANK(B2)) doesn't seem to put any restriction on the cell at all as hitting backspace or delete on cell seems to clear the contents without ever considering that an input to check. Changing the value never causes the cell to go blank so it doesn't seem to affect changing either. I'm really at a loss as to how to do this and any help is appreciated. I'm open to solutions which use VBA or other programming languages to get the desired result as well.
I have a google form that has the following multiple choice question:
How would you rate your general well-being today?
-Very well
-Slightly less than par
-Poor
-Very poor
-Terrible
The form then saves to a google sheet. A column of this data might look like this:
How would you rate your general well-being today?
Slightly less than par
Very well
Very well
Very well
Very well
Slightly less than par
Very well
Where the question is in the top row...and each subsequent row is the a day of the week (and how the person was feeling that day).
I am wanting to view this data in a chart (pie or bar); but am not sure how to handle it since its text and not numbers. One way I was considering is the add some sort of function to the cell that would convert the response to an integer so it could be charted. So in the case of this question the scale would be 1-5; 1 being Very Well and 5 being Terrible. Feels kind of janky, but wanted to check and see if there is an easier way. The once I had a text respesnetation of the responses I could easilty put a chart on them.
Here is what I ended up doing.
In a separate column I have the following function:
=SWITCH(K2,"Very well",0,"Slightly less than par",1,"Poor",2,"Very poor",3,"Terrible",4)
Where column K2 contains the users response. I copied this function to all rows in this column, so now I have numbers 1-5 to represent the users response. Now just highlight the column and add the date on the X-axis and it gives me a nice chart like this:
Might be nice to have the labels rather than numbers on the left side if anyone has suggestions on that.
Sadly, this isn't as cut and dry as I had hoped. Over the past few weeks I had been researching the use of jQuery with CRM. While it's nice and dandy for style alterations, I couldn't find any examples that are closer to business logic.
For example, today I needed to alert the browser if one of 4 fields were empty. Two were date fields, one a picklist and one a checkbox (bit). I thought that calling $("#formElement").val() would have gotten the value, and in some cases it did, such as the picklist after I parsed it as an int. However, the date fields always returned an empty string.
Looking through the CRM form HTML, I see that "#formElement" isn't always the ID of an input for a CRM form element. Case in point, the date fields had ID="DateTime" (or something similar). At this point, I had thought that I will need to create a filter that will take the table that contains #formElement as it's ID and look for the value of the first input in that table, but at that point using crmForm.all.formElement.DataValue just seemed easier.
I'm sure someone here has a solution for this (and maybe some explaination of how CRM Forms are written to help with a filter), and it really stinks not being able to install add-ons for Internet Explorer here at work. Thanks for any and all help.
Use jQuery to select the form itself (either by its ID or just by $(form)) and then iterate over its children that are input text fields. I haven't done this for a form before but it might work for you.
For anyone else who is looking for an answer, I have figured it out to a managable degree. Unfortuantely, I haven't been able to use CSS selectors to shorten attribute names, but I have been able to utilize jQuery to cut down on time. If you'd like to use a CRM 4 attribute with jQuery, it looks like this:
$(crmForm.all.new_attribute).bind("click", function() { ClickFunction(); });
What I was really gunning for was chaining, because there are plenty of times when I need to null a field, disable it, and then force it to submit. A little bit of magic and this:
crmForm.all.new_attribute.DataValue = null;
crmForm.all.new_attribute.Disable = true;
crmForm.all.new_attribute.ForceSubmit = true;
Becomes:
crmForm.all.new_attribute.dataValue().disable().forceSubmit();
I hope this helps some of you guys out!
I have created a chart using a stored procedure which lists totals by name.
However when I create the chart the names only appear for every second element. I have tested this in a table and I get each name correctly.
My first thoughts were that it was a sizing issue, so I considerably increased the size of my chart, but this doesn't make a difference.
Does anyone know what could be causing the problem?
[URL=http://img11.imageshack.us/i/rschart.jpg/][IMG]http://img11.imageshack.us/img11/7191/rschart.
That "VariableAutoInterval" did not work for me, it showed every alternate other label. However the following worked:
In the Axis Properties -> Interval, type 1 : This will show every label. If you type 2, it will show every alternate label and so on.
http://img223.imageshack.us/img223/3118/capturerk.png
Reference : msdn.microsoft.com/en-us/library/bb934393.aspx
I have found the problem. If you go to the properties of the X-Axis in your chart and go to >Interval > VariableAutoInterval and by default this is set to false. Set this to true and it now works.
However there is a problem with formatting as although the labels appear they are displayed slighter off centre of the actual bar elements... this should easily be fixed though.
Thanks for your help!
[URL=http://img230.imageshack.us/i/rschart2.jpg/][IMG]http://img230.imageshack.us/img230/3958/rsc
Ahh you have run into the notorious RS bug that most everyone doesn't notice. No solution to this, however what you can do to display ALL x axis labels is to shorten the categories (or x-axis values to 3-4 letters a piece and display a key).
What I mean about this is in your SQL table of categories add a field called Acronym or something an for a category such as :
SQL SERVER CATEGORY I
In the acronym field make it
SSCI
And in your report instead of using the category field use a much shorter value (the SSCI value). Now next to your report object just create a matrix / table object that displays categories with their acronyms. You do realize that you can use multiple objects in one report that may point to different data sets.
Doing this will display all the X-Axis values, it is all because of the lengths of the categories...
Seems to be working for me. Can you try to export the report to pdf / excel and check the results. Also I am using RS 2005, are you using 2008?