generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 247
Open
Description
I've written a function to take 2 values and calculate the percentage however the output that is produced is just a string showing the values, rather than a calculate number.
This is my code block:
searchType: frontmatter
searchTarget: Sleep, DeepSleep
datasetName: Sleep, DeepSleep
startDate: -7D
endDate: +0D
summary:
template: "% Deep Sleep: {{average(dataset(1))}}/{{average(dataset(0))}}"
and this is the output
% Deep Sleep: 1.0/6.4 %
I was expecting a calculated output of 0.15625.
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels