I try already an hour to make this work but without any progress I want to replace a rating number (1-5) with its corresponding emoji in a dataview query. I tried the following (getting the corresponding emoji from an array by using the rating number as index), which doesnโt work. Any idea how this can be achieved?
dataview
Table aliases as Summary, ['๐ญ','๐ช','๐','๐','๐'][rating] as Rating
FROM "Journal"
Note that I have asked for only pages that include a rating (the .where line), and that would exclude any entry that has a rating of zero. You might need to adjust.
(I have tested the above and it functions perfectly.)