I havent had any luck with this so have left it in the "too hard basket" until now!
Could you please help me with what im doing wrong here... I have a sheet like this:
And in this table there are also 2 VC's with references to another table that should be changing fairly often ("Credits" and "Delivered"). I then have an action as follows:
And a bot with an "all changes" event and this expression:
OR(
[_THISROW_BEFORE].[Credits]<>[_THISROW_AFTER].[Credits],
[_THISROW_BEFORE].[Delivered]<>[_THISROW_AFTER].[Delivered]
)
Which runs the action, however it does nothing... Any help??
From what you described the sequence of changes seem as follow.
A question. The bot only fires the action when the values in Leads or Delivered are changed (= your OR expression).
In the sequence above, I did not see any changed in those cols but changed in the VCs.
Are we missing something here?
Sorry, Im not sure what your question is. So my virtual columns in "Chart" are changing. The problem in how to update in "Chart" table:
My apologies. I was completely confused.
You are updating the VC values which are in your bot's firing condition. That seems all good.
Then. the issue seems to be with your action.
Since action works on one row at a time, having two assignments to the same col seems illogical. At best the last assignment, I suppose, will overwrite your first assignment.
So I suppose you need to create two actions, one that applies to the "Saleable" row, the other to the "Remains" with one assignment to each of Leads and This Week columns and control them to act on the correct row by specifying the condition in behavior (i.e. [status]="Saleable").
Do I make more sense now?
P.S. At least the bot is kicked off, right?
It does make sense, but how do I specify which row the data should overwrite?
Like I said, two actions
One action to apply to the Saleable row. So you just have in your action behavior if condition - [status] = "Saleable" and the other action [status]="Remains".
Your assignment expressions are what you want for each of the rows. (Two assignment in each action.)
You need to fire both actions from the bot. This "only if this condition is true" filter should take care of the rest (apply the right action to the right row)
Im so sorry im just not getting this 🤯, could you give me an example expression to udpate:
Sorry for being so difficult!!
Action to apply to Saleable
condition expression: [status] = "Saleable"
Assignment 1: to your [Leads] <- "Saleable" from the "Client" table
Assignment 2: to your [This Week] <- "Remains" from the "Client" table
Action to apply to Saleable
condition expression: [status] = "Remains"
Assignment 1: to your [Leads] <- "Valid ThisWeek" from the "Client" table
Assignment 2: to your [This Week] <- "Remaining ThisWeek" from the "Client" table
I am assuming that your assignments expressions are correct in the first place.
If you share Client table definition, it might be more helpful.
Its still not working... so all of the 4 values are decimal type and the formulas in the actions are like this:
is "sum(Client[Remains])" the correct expression to give the value of the decimal?
If you want to retrieve data from another table you have to use an expression of some variant to SELECT.
Could you show me your Client table definition?
Actually the action works as it populates the values if I use the icon from appearance, so it must be the bots event trigger?
This is the event in the bot:
Does it look ok?
Whole Bot:
OK, so the SUM expressions are OK.
Then try removing the bot's condition. It is optional. See if the bot works for any changes in Chart.
It doesn't work with or without the expression...
Anything in the bots Monitor?
It shows 4 succesful actions, but they are from me runing them manually, not through the bot (I just tested to make sure)
Hmmm,
This lists Bot trigger conditions (also cases where bots are not triggered).
I cannot tell for sure that changes VC triggered by data in another table actually triggers a bot. (I need to experiment which will take some time..)
Meanwhile, someone maybe able to shine some light on this.
Ill try adding an actual column with the same formula in my Google sheet and see if that works...
My experiment failed, meaning the VC change based on another table did not trigger my bot..
So need another trick.
Wait for your results..
same result, I tried adding actual columns with formulas in google sheets, so 2 actual and 2 VC's, also tried without VCs, and with or without any expression...😑
I was afraid of that. Cols do not automatically update.
One thing you could try is
1) add a col(could be anything) to your Chart.
2) create an action to update this col on Chart
3) create an action on Client to trigger the action in 2) - Data: execute an action on set of rows will let you do that.
4) trigger the action in 3) when you save changes (I assume you are adding or editing rows via a Form) in Client - use Behavior>>Event actions in the Form.
Does this make sense to you?
Unless someone has a better idea, this is the only thing my limited brain can come up with..
Hi @jonbowles84
I believe again I mis-understood you .
My final crack at this
You have tree tables as follows
Here is what you want to happen
If above is what you need, you really do not need a bot.
I have created a demo here. You are welcome to take a look. Generic 3 in here
What I basically did.
Hope this will finally solve your case.
Thankyou, so Ive done the grouped action and the action in CREDITS_DELIEVERED or "Data" in my case. I have also added the action to my Data_Form, Im a bit confused by it 😁 How does it trigger? It doesnt seem to be working..?
Ok, I know how it triggers, upon saving the data_form, it doesnt seem to work, ive tried adding it straight to data to with "Row_Selected" as the event, but neither seem to work...😥
You mean this?
Sorry, I think its just clicked after re-reading your reply: action behavior if condition - [status] = "Saleable"
Virtual columns cannot trigger bots; only changes to normal (non-virtual) columns can trigger bots.
User | Count |
---|---|
40 | |
32 | |
30 | |
16 | |
16 |