cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
D_PBI
Regular Visitor

Replicating a SQL View within Dataverse on multiple Dataverse tables

Hi,
I would like to know if it's possible to create Views within Dataverse combining data from several Dataverse tables.
My current setup is that that we have Dynamics 365, so held within a Dataverse, that has its data pushed to Azure Synapse (the Data Export Services' substitute). From within Azure Synapse, I have created several Views that combine data from multiple Synapse tables i.e. the original Dynamics 365 tables). PBI consumes these Views.

We're looking to ingest various third-party data into our domain. For simplicity, I'm thinking to utilise Power Platform Dataflows as the integration tool and have the data reside in the same Dataverse (the same Dataverse where our Dynamics 365 sits).

Once we have the various third-party datasets in the Dataverse, I would like to combine this data with our Dynamics 365 data. This combined data will act as a Business specific data mart. We may have several data marts each focusing on a different Business process.


I guess I have the option of creating a table (so permanent storage) that combines the various Dynamics 365 tables data and the third-party ingested data in a single place. However, this table (this single place) will add to the Dataverse data volume. If I end creating many data marts then this will quickly add to the cost of running our Dataverse instance.

I would like to know, once I've ingested the third-party data in the Dataverse using Dataflows, if I can create a View (like a SQL View) that would combine data from various Dataverse tables and third-party table data (that sits wihtin the same Dataverse) but, due to it being a View, no extra storage is being utilised, so there's no volume of data increase and therefore no increase in Dataverse costs.
Is this possible? Would someone be able to provide me with a link that demonstrates this process?  I am new to this.

Thanks in advance.

6 REPLIES 6
ivan_apps
Memorable Member
Memorable Member

Yes, Dataverse can support views of data that span multiple tables. But there has to be a link between the tables, usually a Many-to-one relationship. When creating a 'view' from the table in a solution - there is a tab to switch to 'related' tables, where you can reach the related fields. What isn't supported is views with Many-to-many relationships.

 

Now if you want to use SQL server directly, you could push your data via a Data Gateway to SQL. It shifts the cost from Dataverse to SQL and then you can use virtual tables to view that data.

---------
If I helped you solve your issue, please mark it as a solution or give it a like!
ChrisPiasecki
Most Valuable Professional
Most Valuable Professional

Hi @D_PBI,

 

Virtual Tables using the SQL Server connection provider might be a way to go in this scenario. It can connect to the Synapse SQL Serverless endpoint like a normal SQL database, so you can bring other data into your data lake alongside your Dataverse data.

 

The only caveat is that SQL views are not currently supported yet as far as I know, so you'd need to convert that into a flat denormalized table to use it as a virtual table.

 

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

---
Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.
Chris
D_PBI
Regular Visitor

@ivan_apps @ChrisPiasecki - thank you for your replies.
I have now been asked to devise a process so we can remove our need for Synapse (to recap, our Dynamics/Dataverse data is pushed to Synapse, sitting on top of Synapse are SQL Views which the reporting consumes).

I envisage the process as:
1) Our Dynamics 365 data continues to reside in the Dataverse tables as they currently do (i.e. account, contact, and any custom tables, etc..).
2) I aim to use Power Platform Dataflows to extract third-party data from an external domain and load it into a new custom Dataverse table, within our domain, to act as a staging table. This third-party data maybe spread over many third-party tables and so I would like to extract that data using a SQL Script, or the like, which combines the data from the many tables and load it to a single custom table inside our Dataverse solution.
3) I would like to import the external third-party data into our domain on a scheduled basis. I expect once per 24 hours would suffice in case there's a limitation on refresh frequency.
4) I would like to create Views within Dataverse merging the Dynamics 365 data with the third-party data (all now within the same Dataverse instance). Being Views, it means the data isn't physically duplicated and therefore isn't increasing our data storage costs.
5) There may be a need to create Views consuming other Views so that would need to be possible.
6) Through our Dynamics solution, we're able to use Advanced Finds on our Dynamics/Dataverse data which means the end-users can see data insights quick/easy without the effort of creating reports using something like Power BI. There is a limitation when using Advanced Finds with only being able to join two tables (i.e. account or contact) together. Could I join several tables together via a View?
Is an Advanced Find able to connect to a View or can the Advanced Find only connect to a physical table?

I understand there are several data integrations tools I could use. SSIS, Azure Data Factory, etc.. - all of which I know little about - however, my aim to use the Dataverse and Power Platform Dataflows is so the third-party data in consistent in its storage with our Dynamics data. The capability on using Advanced Finds to connect to merged internal/external data is a real plus - although, if Advanced Find cannot cannot to data to a View then the merging of internal/external data will have to be made available in a physical tables which will all add to the cost of our Dataverse implementation.
 
Having read the two replies, I'm realising there is much I don't understand and it makes me nervous about going ahead with this without any type of guidance/training. I'm sure, in the grand scheme of things, my aims are very simple but without having see all in action I could be facing a lot of unforeseen hurdles.

With the added bit of information in this post, is what I'm trying to do still feasible?
Should I still be looking to complete my aim using Dataverse and PP Dataflows?
Are you (anyone) able to provide a link(s) to good material on performing what I need to do so I can see it in action?
Thank you.

Fubar
Multi Super User
Multi Super User

If trying to 'combine' data in views in Dataverse the native view capability is limited e.g. a view on your main table can only display columns directly on that table and columns from the immediate parent table (not from a parent of the parent etc, and cannot show a list of child records).

You may be able to get around this by implementing a Canvas app and 'joining' the data in the Canvas App.  In a Model Driven app you would need to either code a PCF control, embed a Canvas App in your form, or create a Custom Page (basically a Canvas App that is called directly off Model Driven App menu).

 

Generally, you would probably need to think about how you structure your data, as unlike SQL your native joining capability is not as robust inside Dataverse.

D_PBI
Regular Visitor

@Fubar - thanks for your reply.
Okay, it sounds like my need to create a View (Virtual Table) in Dataverse that combines data from several tables, via different cardinality, isn't possible. Instead, I'd only be able to create a View that combines two directly related tables at a time - this is how Advanced Finds function and so I now realise an Advanced Find is the same View (Virtual Table) mechanism as being described to me.
Can the above comment by me be confirmed as accurate?  If a Dataverse Virtual Table cannot combine data from several tables then it's a blocker for me. This further talk of using Canvas App is something I don't understand as I'm completely new to the Power Apps/Dataverse world.

If the above is accurate then I will revert to the trusty method of using SQL Server to do the needed. Ingest data into SQL tables, then create SQL Views combining data from the SQL tables and from Dataverse tables. If I were to follow this method, can I confirm the below:
1) Azure SQL Server can extract data from Dataverse tables (i.e. Dataverse allows for Azure SQL to extract from it)?
2) If I was to use Azure SQL Server to create a SQL View which combined data from several Azure SQL Server tables and several Dataverse tables, could the Dataverse connect to this single SQL View and allow a Dynamics Advanced Find to show the SQL View's contents?  Our users enjoy the simplicity of using Advanced Find to get quick insights into the Dynamics data. They will want to see insights from our Dynamics data and third-party data. If my SQL View approach works and an Advanced Find can show the contents of this single SQL View, that will be a big win for us.

Thanks in advanced.


Fubar
Multi Super User
Multi Super User

Advanced Find is roughly the same as the system view.  However there can be some small differences, as Advanced Find is really for Personal Views, vs the other editor is for System Views - but for generally for what you are wanting it is essentially the same.

Canvas app has the capability to use different data sources not just Dataverse.

 

Dataverse Tables are Web Service enabled (oData), so if what you are using can connect and use Web Services then yes.

I haven't tried it, but from the limitations doco, "SQL views can be used to create a virtual table but they'll only provide read operations" https://learn.microsoft.com/en-us/power-apps/maker/data-platform/limits-tshoot-virtual-tables?tabs=s...

 

Helpful resources

Announcements

Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!  

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

Users online (5,506)