I'm trying to configure Dataform on GCP but the Japanese characters not compiled.
sample code:
config {
type: "view"
}
SELECT
"apple" AS fruit,
2 AS count
UNION ALL
SELECT
"orange" AS fruit,
5 AS count
UNION ALL
SELECT
"peas" AS fruit,
1 AS count
UNION ALL
SELECT
"bananas" AS fruit,
0 AS count
you can see what happens as follows.
In English, "apple" works.
In Japanese, "リンゴ" is not appear in compiled query.
Then, I change "orange" into "ミカン", it freeze. Then, compiled query becomes empty when I copy and paste snippet.
I changed my language settings in both chrome browser and IAM account but it doesn't work.
Please advice me what to do for this situation.
Related
I have several tables that represent rooms in our office, each table includes a column of few cells contain workers names and a device named like the following "Device A", "device B" etc.
Table 1:
HR G1:G6
George
Ema
Benjamin
Johanna
Device A
Table 2:
Dev H1:H6
Josh
Jenna
Tom
Jessica
Device B
I want to summarize all their names exclude the device to a cell on a new table.
Table 3:
Room
NAME A1:B3
HR
George, Ema, Benjamin, Johanna
Dev
Josh, Jenna, Tom, Jessica
The issue is that I can change the devices order so the names on the table can change often.
I want to use TEXTJOIN (or other tool) to combine all cells unless the cell includes "Device" in it, without specify exactly which one.
I tried to use REGEXMATCH, VLOOKUP, SEARCH, COUNTIF but they all return a list, so its not working well inside TEXTJOIN.
I've tried to use FILTER too but wildcard doesn't work there so I must provide the full name of the device.
Please your advice,
Thanks in advance!
You should be able to do something like
=textjoin(", ", 1, filter(G1:G6, not(regexmatch(G1:G6, "Device"))))
or
=textjoin(", ", 1, filter(G1:G6, left(G1:G6, 6) <> "Device"))
(Include the sheet name if you want the results to appear on a different tab).
I am creating a summary sheet in which you can select a column title, and below you will get the Sum of this row.
I have a data validation picker that provides you the options, e.g. column "First Col", "Second Col", "Third Col".
Then I translate it using a switch to "A", "B", "C" (actual columns on the other sheet), and even add the full location, e.g. "OtherSheerB2:B10000".
The problem is how can I try to translate the String representing the column as the function path:
In this example, if you chose "Second Col", I will try =Sum("OtherSheerB2:B10000")
and fail :(
Is the idea I am trying even possible? or are there any other suggestion?
Ok so I think I found a solution using SQL e.g.:
=QUERY({OtherSheerB2!$A$2:$T$1000},CONCAT(CONCAT("select sum(Col",M1),")"))
When M1 contains the number of the columns I want to sum.
I was wondering if anyone had a script or way to randomly select a name based on a list. So heres the problem, i have one person who entered the raffle one time. The next person entered lets say 5 times and so on. The fist person should only get one chance to win while the next person should get 5 chances to win
Assuming the top row for labels and names in ColumnA, 'times' in ColumnB then:
In C2 and copied down to suit:
=sum(B$2:B2)
In D1:
=RANDBETWEEN(1,Sum(B:B))
Then:
=iferror(index(A:A,match(D1,C:C,0)),index(A:A,1+match(D1,C:C,1)))
Alternatively, list the "next person" five times as often as the other two, select the complete list, apply Data > Randomise range and pick the one at the top of the list, say.
I have a DAT file with multiple lines and I want to search only on the first line.
For example, my DAT file contains this text:
Field1þField2þField3þField4þ
JohnþUKþStevenageþ9012þ
MerlitþUSAþBelAirþ56þ
I want to search how many fields I have (in this case, there are 4). If I search for þ, the search is executed across all rows and I get 12 for this example.
Select the first line in the file (SHIFT+END if your cursor is at start of file). You can then go to the Find dialog box and you should see an option to only search "Selected text".
Update: I'm using UltraEdit version 22.10.0.12
I have been searching hours...
I wanted to implement section names with localized first letters as if apple's Contacts App.
If my phone setting is localized, that string will be in seperate section. if not it will be merged in related US characher.
In example,
In English settings: Ömer,Özgün,Orhan,Özüm will be in "O" section sort results in: Ömer,Özgün,Özüm,Orhan
In Turkish settings: Ömer,Özgün,Özüm will be in "Ö" section and Orhan will be in "O" section.
I have tried this: How to use the first character as a section name
and many others...
Try UILocalizedIndexedCollation.