Dataview add value to a link and a table for dessert

Hello,

Here is my goal I would like for a cooking project (yes I know cooklang but I want more!!) add values to links to ingredients to write for example:

[[Onion#Fresh Yellow]]::200gr [[Clean#Peel]]::2mn [[Cut#Purée]]::2mn
[[Cooking#Recovering]]::10mn with [[Olive#Oil]]::10gr

And have a table at the top that summarises
ingredients :
Onion#Fresh Yellow – 200gr
Olive#Oil – 10gr

Technique :
Clean#Peel – 2mn
Cutting#Purée – 2mn
Cooking time : 10mn

Total time 14mn

And the megabonus would be to be able to multiply the values to be able to increase the number of portions… I know I like to dream… but Obsidian makes me dream.

So I’ve managed to make everything work except the sum of the techniques.

the recipie:

(🥚::[[Oignon#Jaune Frais]] : `= this.Part*75` gr)  (🫳::[[Nettoyage#éplucher]] :3:0.5:min) (🫳::[[Découpe#Purée]] :5:0.2:min) 
(🥚::[[Ail#frais]] : `= this.Part*5` gr) 

Ingredients (pour = this.Part part)

TABLE WITHOUT ID split(🥚, " : ")[0] AS Ingredients, this.Part*number(🥚) AS Quantités,
(this.Part*number(🥚) / (this.Part*round(sum(number(this.🥚)),2)))*100 AS pourcentage
FLATTEN 🥚
WHERE file = this.file

TOTAL: =this.Part*round(sum(number(this.🥚)), 2) gr

Techniques

TABLE WITHOUT ID
	split(🫳, ":")[0] AS "Techniques",
	split(🫳, ":")[1] AS "temps"
WHERE 🫳
FLATTEN 🫳
WHERE file.name = this.file.name

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.