How do you display total amount googleSheet using gviz?

@TIMAI2 sorry Boss you was rigth I was confused.
Boss I decided to use SELECT G WHERE A CONTAINS '22/05'
result showing exect date and also no need use =< >=


image

Result:

NOW i woluld like to display total Sum (1440+1800)

Here I tried but missing something?

I have broken it down for you so you can see what is going on:

image

BOSS i did as you explained it's working thank you very much!


image

and last step
I need to put it on google sheet

I believe you already know how to do this? Use the update function in your google apps script.

TIMAI2 Thank you very much for your help!
Here is my result with your help :grin:



image

IF date and Shop name existing :+1:

IF TextBox empty :+1:

**> I've one question: HOW TO MAKE IF date and shop name is not matching **
> then I would like to dipslay "Sorry no data exists for this Shopname"

You have to use the logic when web got result. Just see the response if value found or not found. Calculate the length of the list. And use your logic

If no result found mean see what your app returned. Either empty list or not. If it is empty list mean imagine no result. So you feel now simple to design

Spicy_Topics you mean like this: Still missing something;(


You won't know if you have any matches until the the result of the query is returned from the sheet. Therefore, as Spicy Topics says, you can only do the test (matches/no matches) in the Web.Gottext event once you have the result.

1 Like

Here is my GSheet

1 Like

Well, this won't work will it? You will have two values (in a list) and you are checking against one value.

Think it through, try the is in list block ?

and does this work?

It would be really helpful if you used Do it and showed the values of your variables, lists and responseContent....

Not working! Still missing ;(

I don't believe you learnt the lesson from previous posts. Your query will return a list of lists - [["a"],["b"]] therefore you need to test what is inside the list of a list.

Here I tried from begining to display
and this is the result.


image

I would like to know when I'm typing NOT matching from LIst
I'm seeing sign, what is this sign? and how I can change this sign to empty string.

HERE I made each separate:

After thinking carefully I made match or not , please could you please check


RESULT

The [ ] indicates an empty list.

You can test for any empty list with the is list empty block then do what you need to do

Thank you very much @TIMAI2
YEs, you was right
it's woking also when I use is list empty
here is my result: :+1:
image