cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Help Building it Right

Its been 6 months since building my first successful app. I'm now poised to build a second app that is only a reference app (lookup - no form or data entry) built from SharePoint lists(s). But, unlike the first app, this data has (I believe) nested data? I'm unsure how to build the data correctly for proper filtering. Right now I'm considering the following structure:

 

Column 'A': "Logo" (hyperlink or image)

Column 'B': "Brand" (single line)

Column 'C': "Link" (hyperlink)

Column 'D': "Scope" (two choices, multiple possible, Choice)

Column 'E': "Category" (nine choices, multiple possible, Lookup) [This would be a separate List, containing only the nine categories.]

Column 'F': "Type" (many, multiple possible, Lookup) [as this data is a sub of "Category" this would be a separate list with a Lookup column to "the Category" list the type belongs to.

Column 'G': "keywords" (single line)

 

Columns D to F will be used to filter the data (columns A-C) to the user through a series of checkboxes, or the user can searching via text box as is typical, where the keywords will help narrow results. Thus, the user can type in a word or narrow the results via the checkboxes, or both. 

 

Is the structure of columns 'E' and 'F' correct given this scenario? Having three different Sharepoint Lists (two as a Lookup into the third) the proper way to build this data for PowerApps? 

 

12 REPLIES 12

@Anonymous 

This will somewhat depend on your use of the lists.  If you are only concerned with the presentation of data from the list in your app and no one else will be interacting with the lists other then your app, then I would skip all the Choice columns and Lookup columns and lean toward text columns.  These are a little easier to work with in PowerApps.

As for the variable nature of the information in your Lookup and Choice columns, consider having a separate list for each (i.e. Category and Type) and then just use those lists to "feed" your primary list.  This, again, will be dependent on your list needs and use.

 

Your bigger issue will come with column A - if you are using a purely hyperlink or image type definition is SharePoint, then you can work with this.  If you are using the modern interface "image" type, you will run into issues.

It appears that the primary purpose of the list is to have an image and metadata - I would lean toward using a Document Library instead for this list.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
LRVinNC
Resident Rockstar
Resident Rockstar

You wouldn't need 3 lists, just two.  Category and Type can be in a single list.  Your app can lookup unique category values in one column of that list and unique type values within the category from a second column of the same list.  

You can use the Distinct function to eliminate duplicate category values and provide only the unique values for Category in your app for the user to select from for filtering.  You can do the same for Type.  Use dependent dropdowns to limit the Type within the selected Category.  See my recent post for an example of dependent dropdowns:  https://powerusers.microsoft.com/t5/Building-Power-Apps/Filter-dropdown-choices-based-on-previous-in...


LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Anonymous
Not applicable

@RandyHayes I'll have a student worker inputting content and building up the data, so I'd prefer to have the choices identified in which they choose from predetermined values. I've run into the image issue previously in the last app and successfully resolved it with no problem. 

 

@LRVinNC if I understand correctly, make one SharePoint list, let's call it "Type_Category" with two columns: "Product_Type" as a single line of text with the more unique values, and "Product_Category" as a single line of text, with the nine choices, but still entered as a single line of text (not a Choice column type) exactly matching for each. Then in the SharePoint list that will feed the app, let's call it "SourceList", bring the Type_Category list in as a lookup, using the Product_Type column, allowing multiple, adding the Product_Category column to show the additional field?

 

See attached screenshots. I should not worry about the category duplicates because the app will filter correctly using the distinct function.

 

IF I wanted to show the Category in the gallery as the sub-title, is there a way to use the distinct function there as well? I ask because I recall running into an issue getting a gallery to show items from a lookup/choice column before. 

 

@Anonymous 

I'm a little confused - you seem to have already worked out how you want to go about your app data.  I mentioned some general ways to work around the issues you will experience with lookups, choices and other complex column types in PowerApps.

But your questions now seem a little more related to functions and formulas to use to work with the data.

Your assumption is correct that you will not be able to use the Distinct function with the Lookup column types properly without going through additional steps.

My suggestion of the additional lists are meant to flatten your list types to text, which is easier to deal with in PowerApps.  That is not to say that you do not have predetermined values.  In fact, PowerApps was built to make that very easy.  For example, if you use an Edit form for your list (assuming text type for Category and a separate list with the Categories in it), you can simply change the control type in the Form to be an "Allowed Values" control and then set the Allowed Values to be that Categories List....all done!

Forms have become more accommodating to Lookups and Choices, but you need to go with the flow with them and not try to make them do something they are not.  But, I say "keep is super simple" the more complex you try to do your formulas (not that your app can't be complex, but the more you try to "develop" in a no-code platform) the more difficult it will be.  PowerApps likes simplicity as well...all the way down to the data.

 

So, if you are asking for general guidance on setting the data sources for your new app, then the general guidance that myself and @LRVinNC gave should give you some options to get that underway.

 

If you have specifics on that, or if you have a question on a formula you are working out, please post back with that and we'll get you to that next step.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

@RandyHayes as mentioned, a student will be entering the data (from the backend via Sharepoint) once everything is set up. As the original post states, there will be no form or way to edit the data via the app (by design) so I'm not sure why you are suggesting that be added. The question is ensuring I have the data from SharePoint built right as I found myself deleting and moving columns a bit to get the structure situated when building the last app, but it didn't have nested data and this one does. I'm asking in the last post if the proposed structure described and in the screenshots is was what was meant by @LRVinNC in their suggestion.  Thank you.

@Anonymous 

So the key is this statement - "(from the backend via SharePoint)"

In my opening response I mentioned :

This will somewhat depend on your use of the lists.  If you are only concerned with the presentation of data from the list in your app and no one else will be interacting with the lists other then your app, then I would skip all the Choice columns and Lookup columns and lean toward text columns. 

 

So, if you are going to do it through SharePoint entry, then the use of Lookups and Choices is more essential.  As just a personal preference, when confronted with similar scenarios, I opt to do an App to do entry to SharePoint rather than interact with it directly.  Most find a more polished app a little easier to work with than the SharePoint interface.  My opening statement was sort of biased toward that point.

 

So, if your goal is to provide an easier to use experience directly in SharePoint, then the complex columns will be needed as they are there for that reason (among others).  Since your Type is reliant on the Category, and your old option in SharePoint is to "bring over" one of the looked up columns (i.e. there is no logic of filtering a lookup from another), you will need to have the Type and Category options all in your looked up list (Type_Category), but you already seem to have this down as your screen shots show your category and types in that list and your primary list appears to have the looked up type and "brought over" category already.

 

This is all very usable in PowerApps for your "lookup" app, but it will be a pain to deal with the multiple selected (as it appears you allow multiple type selections in your list), but it is able to be done.

 

Where I would still consider (because I try to lean toward the simple) it to get rid of the lookups and choices and then build an simple entry app for the student to use to get the data in.  However, this also creates an additional list (after looking closer at your screenshots) in that you allow multiple selections in the lookup.  To provide that, you would need another cross-reference list...not the end of the world, but another extra layer.

 

My only suggestion beyond this is to evaluate first what you want your final app to look like.  Working backward from that you can assess the complexity of designing the app to provide that result and then weight that against the complexity of shifting to either a simpler front-end (i.e. build small entry app for student) vs. retain that complexity in the datasource and adjust accordingly in the app.  Not knowing your end product the way you do, I can only offer suggestions based on years of experience and hundreds of apps - but even then, "your mileage may vary"!

 

If you have a mock up of the end app to share, that might give a little more advice. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

@RandyHayes 

The student entering data is very familiar with SharePoint, having entered many items that feed our other app, thus "training" them to use an app form is not desired, plus they need to save the logo a particular way on the site, before attaching it to the list, and I don't want other students getting the idea they can edit the app or its data. Hence, no forms or editing via the app, not even a hint of it. 

 

Attached is a mock-up, did that first. Please note that the data displayed is junk pulled in just to play around with the layout, the title and sub-title are not set up, but essentially the gallery results are filtered by the options above:

  • The Scope checkboxes will default to checked to show all records, only narrowing the results by unchecking one of them (and I assume none if both are unchecked - which is fine).
  • Search should filter all columns, this is how we did the last app, and is working well.
  • The dropdowns as indicated will default as blank, allowing all records unless a selection is made, and are more for advanced searching or browsing the categories and types without using the search bar. I may have to add a third, thus Categories>Type>Sub-type, so just imagine the third drop-down, but I'm trying to avoid a third.

The previous app (and another - so I guess this makes this app number three) had to deal with multiples, and that does seem to be a topic around here of some note. I have memories of .Value and can problem solve the filter command later I imagine, so long as the SharePoint List set up, as previously outlined, will get me there?   

 

@Anonymous 

Cool - this is all fine!

You are stating that Search will be used in this app, so I am going to assume that delegation/record limit is not an issue and that your list will not exceed 2000 records.

 

What you will want to get up to speed on (if not already) is the AddColumns function.

With the AddColumns, you can work with the Lookup columns a little better.  So, for example, if you want to be able to search a lookup column, you can craft a formula such as this:

Search(
    AddColumns(
        Filter(yourList, criteriaBasedOnCheckBoxesHere),
        "lookupValue", yourLookupColumn.Value
    ),
    yourTextInputControl.Text,
    "lookupValue"
)

This will give you the ability to search on single value lookup columns.

If you need to consider multi-select lookup columns, then you can utilize something like this:

Search(
    AddColumns(
        Filter(yourList, criteriaBasedOnCheckBoxesHere),
        "lookupValue", Concat(yourLookupColumn, Value & "|")
    ),
    yourTextInputControl.Text,
    "lookupValue"
)

This will concat the values of all the lookup items (bar separated - not important the separator) and that will then be searched.

 

You will want to set the Category dropdown to Distinct off of the looked up list (Category_List) and then have your Type dropdown filter the Category_List based on the selected Category in the Category dropdown (I believe that was the order of your lookup list).  

 

So...it's a couple extra steps to keep in mind, but it is generally straightforward.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@Anonymous 

How are you doing on this?  Still working through it or past it?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (2,691)