I have a Parent Table with the following columns
I have a Child table with the following columns
I want to keep the Game Format column in the child in sync with the value in the Parent tableโฆso if the value in the parent is changed, the corresponding value in the child table needs to be updated for all rows where Game Date in Table 1 = Game Date in Table 2
Right now any updates to Game Format in the parent does not automatically update corresponding values in the child
Seen quite a few posts on this topic but unable to get it to work. Struggling especially with the expression to select the rows in the child table to update
Can someone please help
Thanks
What is the Ref column in the child table that refers to the parent row?
Hmmโฆ I hope not. Is Game Date the key column of the parent table?
Yes Steveโฆon one date only one Game
Well, thatโs going to be a problem, then: AppSheet wonโt let you change a key columnโs value after the row is created. Instead, consider making the Id column the key column. Note that changing it will break any existing references between children and their parent.
oh okโฆjust wondering, its only the Game Format column that I want to update into the child when the Game Format in the parent is later changed
So lets say when i created the parent record the value of Game Format in the parent is XYZโฆwhen I create a child table record the Game format column in the child table is auto populated with XYZ as I have a formula using a dereferenceโฆ
The problem is when the Game Format column is subsequently changed to something else in the parentโฆso how so I get the updated Game format value now in the parent to be updated into the Game format column of the child table
Hope I am clear
Ah, okay. I missed that earlier.
One approach is to convert the Game Format column to a virtual column. As a virtual column, the value would update itself automatically. The downside is that a virtual column is not stored in your spreadsheet. Would this approach work for you?
See also
Thanks so much Steve ! This works perfectly and everything falls into place
Just one more questionsโฆ
How do you remove these In Line buttons?
Ok got itโฆits from the Slice Actionsโฆthanks
Hi Steve
I have same above problem but if i use virtual column (data studio google need to use child table to do report , it can not see virtual column. Can we have another ways?
User | Count |
---|---|
16 | |
10 | |
8 | |
5 | |
5 |