web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Merging two Dataverse ...
Power Pages
Unanswered

Merging two Dataverse Tables in a View

(0) ShareShare
ReportReport
Posted on by 27

I have the following view

Amad233_0-1705582942991.png

The above is from a single table.,

I have 2 tables from Dataverse containing similar informations like:
   Reference, Date Submitted, Company, Status

 

There are no foreign keys or lookups relating the table.

 

Taking as example as using UNION in sql, how can I merge the two tables into a single view??
I am currently using either API or fetchXML to display data on my PowerPage website.

 

If anyone of you have met the same situation or know how to resolve the problem
Any help is appreciated

Categories:
I have the same question (0)
  • Verified answer
    fm_skeller Profile Picture
    277 Moderator on at

    As far as I know you cannot do a union-like statement with views and/or liquid. You could use the API or FetchXML to query both tables and use liquid/javascript to combine both into 1 table.

    You could also create a third table, where you add new rows whenever either table is modified - and display that table.

  • domliu37 Profile Picture
    314 Super User 2024 Season 1 on at

    Hi @Amad233 ,

     

    I dont believe there's any ootb way to achieve that. As you already use fetchXML to retrieve data, maybe just use 2 fetchXML to retrieve the data from both table, then use code to display the data in a single view, make sure have the same columns etc.

     

    ----------------------
    If you enjoy this post, click the thumbs-up button. If it helped you, mark it as a solution so others can find it easily.

    Cheers,
    Dom

  • Verified answer
    Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @Amad233,

     

    I guess both of the others already point out a good example on how the problem could be solved.

    There are some more things I would like to ask:

    1. If the data is kind of similar, is it really necessary to store them in two different tables?
    2. Is there a column which could connect both tables? If so you could use a reference like a formula column and combine everything in one big table or further extend one of the two existing.
    3. The best approach here would probably be to use fetchXML as already pointed out and get 2 querys running. Join the two JSONs, or arrays, depending on how you set it up in one variable. After that use a for-loop or a for each and display the view on your page while populating the DOM as needed.



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • Amad233 Profile Picture
    27 on at

    It's kinda sad though.

    Dataverse huh 😂

    It's supposed to be super powerful

    Cannot even do a UNION

    Guess I'll have to create another table then, easiest and most manageable solution (In my opinion)

    Thanks Guys

    This is the first time people are replying to my post.  Really appreciate it 👍

    @Lucas001 @domliu @fm_skeller 

     

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @Amad233,

     

    hope you will be able to implement your solution.

    Could you accept one or more posts as a solution? It helps to us when looking for open posts to solve.

     

    Actually there are a lot of active members in the power pages community. Do you have other open posts?

     

    In case you have any more issues or questions, please feel free to ask or open a new post.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard