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

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)

April 4th Copilot Studio Coffee Chat | Recording Now Available

Did you miss the Copilot Studio Coffee Chat on April 4th? This exciting and informative session with Dewain Robinson and Gary Pretty is now available to watch in our Community Galleries!   This AMA discussed how Copilot Studio is using the conversational AI-powered technology to aid and assist in the building of chatbots. Dewain is a Principal Program Manager with Copilot Studio. Gary is a Principal Program Manager with Copilot Studio and Conversational AI. Both of them had great insights to share with the community and answered some very interesting questions!     As part of our ongoing Coffee Chat AMA series, this engaging session gives the Community the unique opportunity to learn more about the latest Power Platform Copilot plans, where we’ll focus, and gain insight into upcoming features. We’re looking forward to hearing from the community at the next AMA, so hang on to your questions!   Watch the recording in the Gallery today: April 4th Copilot Studio Coffee Chat AMA

Tuesday Tip: Subscriptions & Notifications

TUESDAY TIPS are our way of communicating helpful things we've learned or shared that have helped members of the Community. Whether you're just getting started or you're a seasoned pro, Tuesday Tips will help you know where to go, what to look for, and navigate your way through the ever-growing--and ever-changing--world of the Power Platform Community! We cover basics about the Community, provide a few "insider tips" to make your experience even better, and share best practices gleaned from our most active community members and Super Users.   With so many new Community members joining us each week, we'll also review a few of our "best practices" so you know just "how" the Community works, so make sure to watch the News & Announcements each week for the latest and greatest Tuesday Tips!   This Week: All About Subscriptions & Notifications We don't want you to a miss a thing in the Community! The best way to make sure you know what's going on in the News & Announcements, to blogs you follow, or forums and galleries you're interested in is to subscribe! These subscriptions ensure you receive automated messages about the most recent posts and replies. Even better, there are multiple ways you can subscribe to content and boards in the community! (Please note: if you have created an AAD (Azure Active Directory) account you won't be able to receive e-mail notifications.)   Subscribing to a Category  When you're looking at the entire category, select from the Options drop down and choose Subscribe.     You can then choose to Subscribe to all of the boards or select only the boards you want to receive notifications. When you're satisfied with your choices, click Save.   Subscribing to a Topic You can also subscribe to a single topic by clicking Subscribe from the Options drop down menu, while you are viewing the topic or in the General board overview, respectively.     Subscribing to a Label Find the labels at the bottom left of a post.From a particular post with a label, click on the label to filter by that label. This opens a window containing a list of posts with the label you have selected. Click Subscribe.           Note: You can only subscribe to a label at the board level. If you subscribe to a label named 'Copilot' at board #1, it will not automatically subscribe you to an identically named label at board #2. You will have to subscribe twice, once at each board.   Bookmarks Just like you can subscribe to topics and categories, you can also bookmark topics and boards from the same menus! Simply go to the Topic Options drop down menu to bookmark a topic or the Options drop down to bookmark a board. The difference between subscribing and bookmarking is that subscriptions provide you with notifications, whereas bookmarks provide you a static way of easily accessing your favorite boards from the My subscriptions area.   Managing & Viewing Your Subscriptions & Bookmarks To manage your subscriptions, click on your avatar and select My subscriptions from the drop-down menu.     From the Subscriptions & Notifications tab, you can manage your subscriptions, including your e-mail subscription options, your bookmarks, your notification settings, and your email notification format.     You can see a list of all your subscriptions and bookmarks and choose which ones to delete, either individually or in bulk, by checking multiple boxes.     A Note on Following Friends on Mobile Adding someone as a friend or selecting Follow in the mobile view does not allow you to subscribe to their activity feed. You will merely be able to see your friends’ biography, other personal information, or online status, and send messages more quickly by choosing who to send the message to from a list, as opposed to having to search by username.

Users online (2,563)