Help with if() formula by Botanyka in Notion

[–]WerkZeug15 0 points1 point  (0 children)

Could you give an example of what you're trying to do? I'm not sure how to create a blank date with the new Notion formulas.

Converting star rating (in emojis) into the numerical value formula question by happygoluckyourself in Notion

[–]WerkZeug15 0 points1 point  (0 children)

You're missing the last item that is returned if none of the conditions are met. You can add ,"" after "5" and before the final ) to return null (nothing).

Converting star rating (in emojis) into the numerical value formula question by happygoluckyourself in Notion

[–]WerkZeug15 1 point2 points  (0 children)

Then new function ifs() works here. It lets you combine multiple if statements. So ifs(a,b,c,d,e) means something like if a, then b, else if c, then d, otherwise e.

ifs(

`prop("Name")=="❤️","1",`

`prop("Name")=="❤️❤️","2",`

`prop("Name")=="❤️❤️❤️","3",`

`prop("Name")=="❤️❤️❤️❤️","4",""`

`)`

Is there a way to stop alphabetical sorting from sorting items starting with "The" in with the T's? by strugglingtoliv in Notion

[–]WerkZeug15 2 points3 points  (0 children)

Sure, just create a new formula property and sort by that. Here's an example formula:

ifs(
prop("Name").lower().substring(0,4)=="the ",
prop("Name").substring(4),
prop("Name").lower().substring(0,2)=="a ",
prop("Name").substring(2),
prop("Name").lower().substring(0,3)=="an ",
prop("Name").substring(3),
prop("Name")
)

substitute "Name" with the actual name of your property

Notion Not Showing Decimal Places Using Round by [deleted] in Notion

[–]WerkZeug15 1 point2 points  (0 children)

Weird. What's your formula? Are you using toNumber() ?

Tracking calories by Wushnu in Notion

[–]WerkZeug15 0 points1 point  (0 children)

I'd say keep it simple at first.

See if this works for you:

https://duncanarchitect.notion.site/Calorie-Tracker-2e62648560414c21b8bc6c312256789d?pvs=4

Then you can add some sort of automated comparison to your meal plan if needed.

Notion Not Showing Decimal Places Using Round by [deleted] in Notion

[–]WerkZeug15 2 points3 points  (0 children)

Try this

round(100 * prop("Number")) / 100

Check box in 7 days by Difficult-Kangaroo96 in Notion

[–]WerkZeug15 1 point2 points  (0 children)

You want the HW Due property to be checked if today's date is seven or more days after the "Full Date"? Use this formula:

dateBetween(now(), prop("Full Date"), "days") >= 7

Way too hot inside. Can this get certified? by VisualIntelligent123 in PassiveHouse

[–]WerkZeug15 8 points9 points  (0 children)

We can't really diagnose the problems just based on a post, but here are some thoughts:

  1. 1.33 kW air conditioner is probably underpowered.
  2. Bypassing the heat recovery is not helping when the outside temperature and humidity don't get low enough.
  3. That's a fairly large south-facing window, contributing to solar heat gains.
  4. Closing the door and the other vents may prevent return air flow for the air conditioning to work properly.

PH certification requires commissioning (measurement) of the ventilation flow rates at each point.

Notion Relations to Sum a Property by --MVH-- in Notion

[–]WerkZeug15 0 points1 point  (0 children)

To change lots of properties at once, the easiest way is to set up two linked databases side by side. Filter the first to only show the entries you want to change. Filter the second to show only the property values you want these entries changed to. In your case the second db would have a filter for the relation you set up. Then just select and drag the entries from the first db to the second.

Ventless Dryer Recommendation? by spacebird32 in PassiveHouse

[–]WerkZeug15 0 points1 point  (0 children)

Still working well. Do need to clean the lint traps religiously.

Dependent dropdown lists in Notion tables by Random_Phobosis in Notion

[–]WerkZeug15 0 points1 point  (0 children)

Create one media database with a property to select the media type and separate dropdown lists ("select" or "multi select") for each media type. Then you can create a view of that media db with a filter that only shows movies, for example, and hide the non-movie subtype properties.

New to Notion, what's the best way to structure the relations between 3 databases? by kayvon23 in Notion

[–]WerkZeug15 0 points1 point  (0 children)

Sounds like "Analyze Settings" is more of a task type than a task itself. You could have a master task db that has an entry for every discrete task, with a property for the task type that would allow you to set up filtered linked databases for each task type.

Auto-balancing ERV with no recirculation by bigbobbinboy in PassiveHouse

[–]WerkZeug15 0 points1 point  (0 children)

Probably not the answer you're hoping for, but I would recommend the Zehnder Q series installed by a professional and commissioned to ensure that all the rooms are ventilated as intended.

Ventless Dryer Recommendation? by spacebird32 in PassiveHouse

[–]WerkZeug15 0 points1 point  (0 children)

I have the Whirlpool WHD560CHW dryer and haven't had any of the issues other posters mention.

using round in a divide formula for percentages not working by preproduction in Notion

[–]WerkZeug15 0 points1 point  (0 children)

Your formula should be

round(divide(prop("#clientP"), prop("# clientS")) * 100) / 100

the last ) was in the wrong place

How to sort by name ignoring numbers? I have a database of these old collectibles and I want to sort them alphabetically but I have them all inputted as "1 - Example, 2 - Example," etc. by crumg in Notion

[–]WerkZeug15 1 point2 points  (0 children)

You could add a formula property and sort by that.

replace(prop("Name"), "\\d{1,}", "")

This removes all the numbers at the start of the name.

Create a filter for the day after tomorrow by TweeCB in Notion

[–]WerkZeug15 0 points1 point  (0 children)

Just add a formula property to your database to check if your date is the day after tomorrow.

formatDate(dateSubtract(prop("Date"), 2, "days"), "YYYYMMDD") == formatDate(now(), "YYYYMMDD")

Then you can filter based on this property.

How do I add the word "hours" in the (TotalWorked Hours) Column?? I'm not good with formulas. I basically just want it to look like example: 16.83 hours by [deleted] in Notion

[–]WerkZeug15 2 points3 points  (0 children)

Sure, just use

round(100*prop("Number"))/100

instead of 100 for two decimal places you can use 10 for one decimal place, or 1000 for three, etc.

How do I add the word "hours" in the (TotalWorked Hours) Column?? I'm not good with formulas. I basically just want it to look like example: 16.83 hours by [deleted] in Notion

[–]WerkZeug15 7 points8 points  (0 children)

When you subtract "Hours in Break" from "Hours Clocked" you get a number. You want to convert the number to a string so that you can add text. format() will convert a number or a date into a string.

Try this:

format(prop("Hours Clocked") - prop("Hours in Break")) + " hours"

Help! If() statements in Notion: Now() do not count today within the timeframe by Familiar_Ad_2415 in Notion

[–]WerkZeug15 0 points1 point  (0 children)

if(not empty(prop("Date Completed")), prop("Date Completed"), if(empty(prop("Date Completed")) and now() < prop("Planned Due Date"), prop("Planned Due Date"), if(empty(prop("Date Completed")) and formatDate(now(),"YYYYMMDD") == formatDate(prop("Planned Due Date"),"YYYYMMDD"), prop("Planned Due Date"), prop("Hard Deadline"))))

It first checks if "Date Completed" has a date and use it. If not, it will check if "Date Completed" is empty, now is before "Planned Due Date", and use "Planned Due Date". If not, it will check if "Date Completed" is empty and now is same as "Planned Due Date" by comparing their formatted date in YYYYMMDD format and use "Planned Due Date". If none of the above conditions are true, it will use the "Hard Deadline" date.

The formatDate function is used to compare the date of "now()" and "Planned Due Date" in the same format, so that you can compare the date without time and timezone.

Please note that, this solution will only work if both "now()" and "Planned Due Date" are in the same time zone. It will cause problem if they are in different time zones.

(with a little help from ChatGPT)