英文:
Propagate the status from Table A to Table B to Table C in notion?
问题
I am trying to create a template where I have the following 3 table:
- BookDB
- ChapterDB
- SectionDB
In SectionDB I have 3 columns: Name, Status (of type Status), Chapter (related to Name column of ChapterDB).
In ChapterDB I have 3 columns: Name, Book (related to Name column of BookDB), Sections (related to Name column of SectionDB)
In BookDB I have 3 columns: Name, Chapters (related to Name column of ChapterDB), Status (which must get the status/progress from the Status column of ChapterDB)
Now I can create a column by the name: Status (of type Rollup) in ChapterDB, which can then present the progress of a chapter based on the combined value of Status column for all the sections of a Chapter (related column in SectionDB) of SectionDB. So, this is one-level relation and is achievable.
Question: What I want, is to use this Status (in ChapterDB) to present status/progress of the Book in BookDB. How can it be done?
英文:
I am trying to create a template where I have the following 3 table:
- BookDB
- ChapterDB
- SectionDB
In SectionDB I have 3 columns: Name, Status (of type Status), Chapter (related to Name column of ChapterDB).
In ChapterDB I have 3 columns: Name, Book (related to Name column of BookDB), Sections (related to Name column of SectionDB)
In BookDB I have 3 columns: Name, Chapters (related to Name column of ChapterDB), Status (which must get the status/progress from the Status column of ChapterDB)
Now I can create a column by the name: Status (of type Rollup) in ChapterDB, which can then present the progress of a chapter based on the combined value of Status column for all the sections of a Chapter (related column in SectionDB) of SectionDB. So, this is one-level relation and is achievable.
Question: What I want, is to use this Status (in ChapterDB) to present status/progress of the Book in BookDB. How can it be done?
答案1
得分: 2
不能直接对一个卷集进行进一步卷集,您必须在章节数据库中创建一个公式属性,让它显示状态的卷集:Prop(rollupofstatus)
,然后您可以在书籍数据库上对该属性进行卷集。
英文:
You cannot do a rollup of a rollup directly, you have to make a formula property in the chapter database and have if display the rollup of the status: Prop(rollupofstatus)
then you can do a rollup of that property on the book database.
答案2
得分: 0
以下是您要翻译的内容:
"The answer by @Nickmeu was hard information for me to find so I thought I'd reinforce and elaborate. I hope others find this helpful.
If you're rolling up a text field, a formula works just fine.
Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (text)
If you make tableOrdersCombined the following way, it will output text in Col6:
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- orderID.company1 (rollup)
- orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
The problem is when you try to rollup relation or rollup fields. For example:
Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (relation)
If you make tableOrdersCombined the following way, it will output a link😠 in Col6:
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- orderID.company1 (rollup)
- orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
Instead, make tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (relation)
- form.orderID (formula)
prop("orderID")
Then, if you make tableOrdersCombined the following way, it will output text in Col6 (although 4 & 5 will be text also):
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- form.orderID.company1 (rollup)
- form.orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
"
英文:
The answer by @Nickmeu was hard information for me to find so I thought I'd reinforce and elaborate. I hope others find this helpful.
If you're rolling up a text field, a formula works just fine.
Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (text)
If you make tableOrdersCombined the following way, it will output text in Col6:
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- orderID.company1 (rollup)
- orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
The problem is when you try to rollup relation or rollup fields. For example:
Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (relation)
If you make tableOrdersCombined the following way, it will output a link😠 in Col6:
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- orderID.company1 (rollup)
- orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
Instead, make tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:
- Name (text)
- orderID (relation)
- form.orderID (formula)
prop("orderID")
Then, if you make tableOrdersCombined the following way, it will output text in Col6 (although 4 & 5 will be text also):
- Name (text)
- name.company1 (relation)
- name.company2 (relation)
- form.orderID.company1 (rollup)
- form.orderID.company2 (rollup)
- form.orderID.combined (formula)
concat(prop("orderID.company1"),prop("orderID.company2"))
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论