# Linking back to original file from dateview query

**URL:** <https://forum.obsidian.md/t/linking-back-to-original-file-from-dateview-query/77783>\
**Category:** Help\
**Tags:** dataview\
**Created:** [February 29, 2024, 11:19am UTC](https://forum.obsidian.md/t/linking-back-to-original-file-from-dateview-query/77783 "2024-02-29T11:19:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prince](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/ba9def/32.png) [@prince](https://forum.obsidian.md/u/prince)\
**Post date:** [February 29, 2024, 11:19am UTC](https://forum.obsidian.md/t/linking-back-to-original-file-from-dateview-query/77783/1 "2024-02-29T11:19:11Z")

</div>

### What I’m trying to do

First of all my daily notes are created as DD MMMM YYYY,DDDD. They have the property called “Created” which is a date.

```dataview
table without id
	file.link as links,
	dateformat(created,"dd") as Date,
	choice(x,"✅","❌") AS 🪥
from "Daily Notes/2024/February"
sort Days ASC

```

This query returns the file link the dd part of the created property and a checklist item x.

What I want it to do is return the dd part of the created property which links back to the daily note and a checklist item x.

So, it would show some thing like

 ![image](https://forum.obsidian.md/uploads/default/original/3X/1/d/1d3ded38363c5ed6e5fa68339c57748762de95ef.png)

where the 04 part the dd part would be a link back to the file it came from in this case the file named 04 February 2024, Sunday.

### Things I have tried

I tried to do this by using the following query:

```dataview
table without id
	[dateformat(created,"dd")](file.link) as Date,
	choice(Brush-Twice,"✅","❌") AS 🪥
from "Daily Notes/2024/February"
sort file.name ASC 

```

But this just ends up in some error

---

<div class="post-metadata">

**Author:** ![prince](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/ba9def/32.png) [@prince](https://forum.obsidian.md/u/prince)\
**Post date:** [February 29, 2024, 1:15pm UTC](https://forum.obsidian.md/t/linking-back-to-original-file-from-dateview-query/77783/2 "2024-02-29T13:15:35Z")

</div>

Solved it.

```dataview
table without id
	link(file.link,dateformat(created,"dd")) as Date,
	choice(x,"✅","❌") AS 🪥
from "Daily Notes/2024/February"
sort Days ASC

```

Hope this will help someone out in the future. 😄

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [May 29, 2024, 1:15pm UTC](https://forum.obsidian.md/t/linking-back-to-original-file-from-dateview-query/77783/3 "2024-05-29T13:15:43Z")

</div>

Closed on May 29, 2024, 1:15pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
