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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Desplay SharePoint list base on previous question value

(0) ShareShare
ReportReport
Posted on by
Hi there.
 
I have many SharePoint lists.
 
I created a app and need to display a table. But the list to display will depend on the previous answer.
 
If the previous answer is Option 1 I want List A to be displayed if it is Option 2 I want list B to be displayed.
 
I tried this code but it is not working.
 
If(PlantDataCard.Selected.Value = "Salads and Pickles",
DisplayList('[OT] Devices - Bethlehem - Salads and Pickles'),
false)
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,827 Super User 2025 Season 2 on at
    Desplay SharePoint list base on previous question value
    Can you explain this line?
    DisplayList('[OT] Devices - Bethlehem - Salads and Pickles')
     
    Are you saying that the data you wish to display is in different SharePoint lists?
    If so, you would essentially have to popup a different screen showing the details from that list or have controls for the list on one screen and make them visible when chosen.
     
     
     
  • Inogic Profile Picture
    1,122 Super User 2025 Season 2 on at
    Desplay SharePoint list base on previous question value
    Hi,

    If you're trying to display data in a gallery, you can set the Items property of the gallery as below


    If(
        PlantDataCard.Selected.Value = "Salads and Pickles",
        '[OT] Devices - Bethlehem - Salads and Pickles',
        If(
            PlantDataCard.Selected.Value = "Option 2",
            '[OT] Devices - Bethlehem - List B',
            Blank() // Optional: specify a default or blank result if no match is found
        )
    )

    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard