Product usage analysis

This commit is contained in:
Steph Ango
2024-04-15 10:57:28 -07:00
parent 90cca77f9a
commit 3afc5e42e2
6 changed files with 177 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
Analysis of cost per use, see [[Buy wisely]]
```dataview
table without id
file.link as Product,
rating as Rating,
"$" + round(price/(monthly-uses*((date(today) - acquired).months)),2) as "Per use",
monthly-uses as "Uses/month",
dateformat(acquired, "yyyy-MM") as Acquired,
round((date(today) - acquired).months,1) as "Months",
"$" + string(round(price, 2)) as Price,
round(monthly-uses*((date(today) - acquired).months),0) as "Total uses",
type as Type
where
monthly-uses > 0 and
contains(category, [[Products]])
sort
round(price/(monthly-uses*((date(today) - acquired).months)),2) asc
```