B
B
BIMDS2020-03-25 12:08:36
Google Sheets
BIMDS, 2020-03-25 12:08:36

Why is the QUERY partially executed?

The grouping of text through the query function is incorrect .
There is a source table with data

spoiler
5e7b1ec83a228964245233.png

Through the query, I group and sum the values
=query('Daily(cop)'!H:N;"Select N,I,J,K, sum(L) group by N,I,J,K LABEL sum(L) 'Σh'")

But at the same time, as a result of grouping, Text elements are not displayed, i.e. components are lost 10040-MIX 10040-BM-MEP, etc.
spoiler
5e7b1f539e418623560015.png

Moreover, if they are replaced only by numbers, everything happens correctly, why is the text component not displayed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Noir, 2020-03-25
@PolarBearGG

there is such a bug in google but you can win through filter

A
Alexander Ivanov, 2020-03-25
@oshliaer

I don't think there is any optimal algorithm for determining the type of values ​​in a range. Therefore, you must take care of it yourself.
An example of implicit type casting to a string ""&C5:C12
5e7b65e5996ac884516810.png
This is not a bug at all. These are the requirements of the SQL query language and its derivatives. All data must be converted to the desired type, fantasy is unnecessary.
Table Example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question