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

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!

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!     Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!     Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include 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 image below to find out more!     UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!     European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!   Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!   For more events, click the image below to visit the Microsoft Community Days website.    

Tuesday Tip | Update Your Community Profile Today!

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.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

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!

Users online (3,541)