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 Apps / Can you use Dataverse ...
Power Apps
Unanswered

Can you use Dataverse to De-Normalise Data

(0) ShareShare
ReportReport
Posted on by 375

Hi,

In database design we spend ages normalising data to reduce duplication and improve data quality. 

However, it easy to get carried away sometimes and end up over-normalising data to the point it takes longer to put it back together in order to make any sense of it. (I'm certainly guilty of this in the past when starting out with SQL.)

 

In Azure SQL we have a handy tool called a 'Stored Procedure' that can manage all the inner joins, lookups and aggregations, etc. to produce a simple flat table that Power BI can call and then simply finish off the math.

 

Is there an equivalent method to Stored Procedures in Dataverse? 

 

Here's the problem I'm faced with.

Step one.

Multiple 'normalised' Dataverse tables that need to be joined up into a flat table.

This is a simple diagram of what I'm trying to achieve (table and column names are for illustrative purposes) - essentially the reverse of what we normally do.

Gary_Eden_0-1715878391172.png

Step two.

If that can work with the standard Dataverse tables the next stage is to repeat the process but this time using Virtual Tables to pull in data from the various end points, including SharePoint lists, Oracle (Cloud and on-premise), Salesforce, and even the odd Excel spreadsheet (if possible).

 

In one combination (in the same database) I currently have to use 6 linked tables just to match and extract the two values needed - nuts. In another combination I have to pull 4 tables from 3 separate endpoints in order to get the two values required.  

 

Is even part of this possible in Dataverse?

 

If not the alternative suggestion we have is to use multiple Flows to pull and aggregate the data and then write this to a combined table. Not a great solution as the flows would need to be running almost permanently as a good proportion of the data is constantly changing.

 

I expect others have been faced with a similar issue but couldn't find any specific posts on how to resolve it... maybe it's not possible.

 

 

I have the same question (0)
  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    Hi @Gary_Eden ,

    as you already aware normalising data inside Dataverse can't arrive to the same level as inside a standard SQL server.

    In your example "Stock List" will be not a table but a view on the "Stock" table, as "Stock" have lookups on both "Product" and "Colour" tables, Dataverse add already inside the view of "Stock" the primary column of these two lookup tables (attention here, it just surfaces the primary column, not other columns of the table)

    I hope you understand is difficult to give useful advise without knowing the real scenario you are facing, especially with Virtual Tables as it is difficult to combine them, if you really have multiple sources as you described, my suggestion probably (without knowing the details) will be to don't use virtual tables but to sync the data between the external source and the Dataverse table using a synchronization tool (Power Automate can be used if we have a very small amount of data, for higher volumes there are on-premise tools and cloud tools that works better).

    Hope it helps

  • Gary_Eden Profile Picture
    375 on at

    Hi @GuidoPreite 

    Thanks for your reply, you have confirmed the conclusion we were coming to.

    It's a shame that Dataverse is unable to look at any column in any table and use these as a lookups to create a combined table of data.

    Maybe one for the suggestion box 🙂

  • mjburley Profile Picture
    370 on at

    Not sure of what your end goal is here, but for having a flat table for PowerBI, I use the Azure Synapse link to DataVerse (simple to set up), and then you can stick a virtual SQL on top of that and produce SQL views etc. for PowerBI to look out. I use this when my SQL skills bypass my PowerBI skills ...

     

    Or just go the whole way and build a data lake for the DataVerse and the external tables.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard