# Embed /include dataview from other file

**URL:** <https://forum.obsidian.md/t/embed-include-dataview-from-other-file/50127>\
**Category:** Help\
**Tags:** dataview\
**Created:** [December 20, 2022, 5:01pm UTC](https://forum.obsidian.md/t/embed-include-dataview-from-other-file/50127 "2022-12-20T17:01:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mr\_anh\_ngoc](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/90ced4/32.png) [@mr\_anh\_ngoc](https://forum.obsidian.md/u/mr_anh_ngoc)\
**Post date:** [December 21, 2022, 3:47pm UTC](https://forum.obsidian.md/t/embed-include-dataview-from-other-file/50127/4 "2022-12-21T15:47:48Z")

</div>

Thanks for your replay.  
i did another try with more simple data/notes:

File: \_action\_1

```auto
---
type: action
dat-beg: 2022-12-20
dat-end: 2022-12-20
state: 2
---

```

project:: [[project\_1]]

File: \_action\_2

```auto
---
type: action
dat-beg: 2022-12-20
dat-end: 2022-12-20
state: 1
---

```

project:: [[project\_1]]

File: \_action\_8

```auto
---
type: action
dat-beg: 2022-12-01
dat-end: 2022-12-02
state: 2
---

```

project:: [[project\_2]]

File: project\_1

```auto
---
dat-beg: 2022-12-20
dat-end: 2022-12-22
type: project
state: 3
---

```

`$=dv.span(await dv.io.load("dv_incl_ProjFile.md"))`

File: project\_2

```auto
---
dat-beg: 2022-12-27
dat-end: 2022-12-29
type: project
state: 1
---

```

`$=dv.span(await dv.io.load("dv_incl_ProjFile.md"))`

File: dv\_incl\_ProjFile

````auto
```dataview
TABLE dat-beg, dat-end
WHERE type = "action" AND project = this.file.link
SORT state ASC, dat-beg DESC  

````

but all I get is:  
‘-’  
[mnvwvnm](https://forum.obsidian.md/u/mnvwvnm) already gave me advise…  
I set up a new vault only with dataview-plugin → also negative.

Obsidian Version v1.1.8,  
([mnvwvnm](https://forum.obsidian.md/u/mnvwvnm) has v1.0.3 and it works for him… )

I found this thread: [Dataview: reuse DQL queries?](https://forum.obsidian.md/t/dataview-reuse-dql-queries/44370)

but I dont get through.  
i tried to change the call of dv to

`$=dv.view(await dv.io.load('dv_incl_file.md'))`  
\_\_\_\_\_\_^^^^^^  
also renamed the file to `dv_incl_file.js`  
 → negativ  
is it a bug possibly?

---

_[View the full topic](https://forum.obsidian.md/t/embed-include-dataview-from-other-file/50127)._
