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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Relate 3 SQL Tables in...
Power Apps
Answered

Relate 3 SQL Tables in a Data Table

(0) ShareShare
ReportReport
Posted on by 5

Hi, I have 3 SQL Tables.

I want to be able to display all the data in a data table in PowerApps from the 3 tables relating on their keys (Id's).

I have a dropdown which has ProcessorDescription but I want it to filter out the Data Table based on that.

So Ideally using MIPDocumentConfig.ProcessorDescription in the dropdown and then filtering out the data from the PostConfiguration table. Is something like this possible? I am quite new to PowerApps.

 

MIPDocumentConfig

MIPDocumentConfigId  MIPDocumentNoPrefixProcessorDescription

 

SettlementDocumentConfig

SettlementDocumentConfigId  SettleDocumentNoPrefixBankAccountDescription

 

PostConfiguration

PostConfigId  MIPDocumentConfigIdSettlementDocumentConfigIdAccountTypeAccountNumberDescriptionCurrencyBalancingAccountTypeBalancingAccountNumberDimension1
Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @Vikz_19 

    The best thing to do here is to create a view in SQL Server that joins the 3 tables. Here's an example of how this would look.

     

    CREATE VIEW vwPostConfiguration AS
    SELECT 
     pc.PostConfigId,
     pc.AccountType,
     pc.AccountNumber,
     pc.Description,
     pc.Currency,
     pc.BalancingAccountType,
     pc.BalancingAccountNumber,
     pc.Dimension1,
     mip.MIPDocumentNoPrefix,
     mip.ProcessorDescription,
     sdc.SettleDocumentNoPrefix,
     sdc.BankAccountDescription
    FROM 
     PostConfiguration pc
    JOIN 
     MIPDocumentConfig mip ON pc.MIPDocumentConfigId = mip.MIPDocumentConfigId
    JOIN 
     SettlementDocumentConfig sdc ON pc.SettlementDocumentConfigId = sdc.SettlementDocumentConfigId;
    

     

    Add this view to your Power App.

    Let's say your combobox is called cboProcessorDescription. You would set the Items property of your combobox to  MIPDocumentConfig.

     

    To filter the data, you would set the items property of your table control to the following:

    Filter(vwPostConfiguration, 
     MIPDocumentConfigId=cboDocumentConfig.Selected.MIPDocumentConfigId
    )

     

  • VM-22010656-0 Profile Picture
    5 on at

    @timl 

     

    Thanks for the help, I saw this, I was trying to find a way to do it without creating a view.

    Thanks will try the View route.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard