Confused about case_when

Please do not post screenshots, they are not useful, post formatted code instead, here is how to do it.

Ideally, you should ask your question providing a proper reproducible example, like explained in this guide