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 / Creating personalised ...
Power Apps
Unanswered

Creating personalised comments

(0) ShareShare
ReportReport
Posted on by 14

Hi,

I am wanting to create a comment bank for school data reporting. I plan on having a drop down of all of the adjustments that I may make in class.

If I select 3 adjustments, I would a string formed that automatically adds the first name followed by he / she to the second sentence, then back to the first name again on the third.

 

For example, if a person selects:

- presented to class today tired and withdrawn

- had difficulty comprehending simultaneous equations

- required teacher assistance to scribe work into the workbook and the reading of questions

 

If the students name was Tom, it would need to pull it together as:

 

Tom presented to class today tired and withdrawn. He had difficulty comprehending simultaneous equations. Tom required teacher assistance in scribing work into the workbook and the reading of questions.

 

If it was a girl named Kylie, it would need to do the same but instead of He, put She.

 

Kylie presented to class today tired and withdrawn. She had difficulty comprehending simultaneous equations. Kylie required teacher assistance in scribing work into the workbook and the reading of questions.

 

A teacher may select more than three statements.

 

Any assistance would be appreciated.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Newbie2021 

    Are you able to share what you have done so far and also how you plan to store and use your data eg will it be stored in SharePoint and the Teacher's add comments via a PowerApp?

     

    As a basis:

    - you'd need a student database, with a schema similar to

    First | Last | Middle | StudentNo | Gender | Pronoun ...

    Gender options: Male, Female, Non-Binary, etc ...

     

    - Teacher database

    - Standards Comments database

    - Comments made database, eg schema

    Date | Comments | Teacher | StudentNo ...

     

    Then, you'd need to decide how your data will be presented / distributed eg via school reports or some other way. You mention teachers could pick more than 3 comments so this means storing more than 255 characters in a single-line of text field in SharePoint would be a challenge - your Kylie example is 207 characters. What if a teacher selects 10 comments, would all of that info be required or is there space on a report for all of that? If not, then comments would need to be ranked and stored individually rather than as a continuous sentence.

     

    Are you even wanting to store comments or just send via email (for example) via an app then email is your storage method.

     

    Plenty to mull over and make some decisions before moving forward.

     

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous 

    Thank you for your reply. Since your message I have created several excel tables and starting building the app. 

     

    They include:

    Student_Details

    Newbie2021_0-1619425187839.png

    Data_Comments (Where the comments will be saved)

    Newbie2021_1-1619425287612.png

    Adjustments table (Comments)

    Newbie2021_2-1619425459200.png

     These are broken into categories such as reading, writing, well-being and assessment. Due to the number of comments for each category, I was thinking oh having each one on a separate screen. The user can select a few comments, then click to the next screen and so on.

     

    At the end before submitting it, I would the user to see it on a summary page.

     

    As per my original question, I am not sure how to pull all these strings together and based on the child's sex and the pronoun I've added in the table, alternate being the name and pronoun and pull all the strings together. Would this involve a concat?

     

    Any further assistance would be appreciated.

    Cheers

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Newbie2021 

    You appear to be putting in a fair amount of effort into this app, however, your choice of datasource ie Excel, will likely put all of those efforts to waste. Excel can be a datasource but it's really only for very small project apps, not seemingly large apps like yours.

     

    There are many stories on this forum and the web of users who have regretted using Excel to build a PowerApp. Here, Shane Young does his best to discourage users from using it, which is worth watching before you get too far in.

     

    For what you are doing, Concatenate will probably do what you want.

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous ,

    Thanks for your feedback. I will take your advice on board and switch to SharePoint Lists. I will seek your advice again once I've done that.

     

    Cheers

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous ,

    I have transferred all excel tables to SharePoint lists. If you could provide any further advice it would be appreciated.

     

    Cheers

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Newbie2021 

    Just a general comment to start. Your Data_Comments table has a lot of Data Redundancy built into it. This is where you have repeated data across many records eg the columns Teacher_First --> Class will be REPEATED every time you add a new comment. This is wasted storage, adds complexity to any updates required and a number of other issues.

     

    @Drrickryp has a really good blog series on Database Design principles that may be worth reading?

     

    A better way would be to have 

    Date | Teacher_ID | Student_ID | Comment | ...

     

    Then you can use LookUp() to get the Teacher and Student information relevant to your app usage.

     

    To combine your comments together you can use either Concatenate or Concat, whichever suits. You will also need to setup your rules, eg

     

    [Name] <space> [Comment] .<space> [Pronoun] <space> [Comment] .<space> [Name] ...

     

    In the above, I've used Name then comment, Pronoun then comment, Name then comment and so on. So, every second comment gets the Pronoun first. Is that your business rule?

     

    You could write a Concatenate formula to cover this but I think that Concat is far better option because it would add dynamic functionality. Concat takes a table of data then returns a string based on the formula you set. Using @timl 's blog post here, you can create the table you want then string it all together, like so

     

    First, get the Student record

    Set( vStudent, Lookup(Student_Details, Student_ID = ID))
    
    // This assumes that you have picked or entered into an input field some ID that relates to a Student and it's identified as 'ID'

    Then, create a local collection of data

    ClearCollect(
     colStudentComments,
     Filter(
     Data_Comments,
     // DatePicker1 is a DatePicker setup to filter the comments by a Date
     Student_ID = vStudent.ID && Date > DatePicker1.SelectedDate
     )
    );
    
    Clear(colComAdded);
    // Create collection of comments with Pronoun to be used ie "ProN"
    ForAll(
     colStudentComments,
     Collect(
     colComAdded,
     Last(
     FirstN(
     AddColumns(
     colStudentComments,
     "ProN", If(Mod(CountRows(colComAdded) + 1,2) = 0,
     vStudent.Pronoun,
     vStudent.FirstName1
     )
     ),
     CountRows(colComAdded) + 1
     )
     )
     )
    )

     

    Then, in a label you can add this code to see the output

    Concat(colComAdded, ProN &" " & Comment & ". ")

     

    I've made a fair number of assumptions in the above but I think I've given you enough of the bare bones to get you started. Let me know if you need further help.

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous  ,

    I really appreciate the time you have given to helping with this project. I understand why you have recommended decreasing the amount of data in the table.

    As I am new at this, I was thinking of the end product. I was planning on creating a flow to pull all the data into a formatted PDF document. 

    One thing that I also didn't mention was that each lesson that a teacher makes an entry, they select 3 unique details:

    1) Subject

    2) Curriculum Covered

    3) Elaboration

     

    These values will change with every entry. For example, I may make one entry for mathematics with a certain section of the curriculum taught and a more specific description (elaboration) of this. Then go to a science class with different information attached to the comment. 

     

     

    So, I have changed the list to:

     

    Newbie2021_0-1619519803868.png

    Teachers don't have an ID. I'm guessing this can be captured through their Office 365 login as the creator of the entry.....

    With regards to the comment bank, I am slightly confused. I had planned on having a bank of comments and displaying these on separate pages. The teacher may select more than one. For example:

    Newbie2021_2-1619520995681.png

     

    Then the next page would have writing, then perhaps well-being. In the end they may select 10 strings.

    How do I pull all of these strings? When I hit next, where does the selection go....

     

    I am also confused with:

    Newbie2021_3-1619521250206.png

    🙄

    😖

    Thanks again.

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Newbie2021 

    Yeah, I thought that I may have created some confusion with my last post but this was because I didn't have any insight into how your app looked or the flow of it. The above image helps 🙂

     

    So, would the flow be something like:

    1. Teacher picks Subject, Curriculum Covered and Elaboration

    2. Then, picks a Student from a gallery

    3. Then adds comments

     

    ?

     

    The way I would 'collect' the comments for a Student/Subject/Curriculum/Elaboration would be to create a collection. When a Teacher picks a comment, this comment gets added to a collection. They should also have the functionality to remove a comment. You can do this via a gallery like shown in your image.

     

    Once a Teacher has collected Reading, Writing and Well-Being comments then you could use the above code I posted previously to string it all together. The code that identifies the Student would be used at Step 2 above.

     

    Re: I was planning on creating a flow to pull all the data into a formatted PDF document. 

     

    Flow has a really basic PDF generation feature that is very frustrating to use and get right. Search these forums for the many issues people have had previously. Basically, if you want to PDF to look half decent with a good deal of data then you are probably better off looking at some Premium connectors. I generally recommend Encodian for PDFs as they have a Trial version and a FREE 50 Actions / Mth account that may suit? Using their connector you can basically build any PDF style you want! I have no association with them, just like their product.

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous ,

    Thank you so much for your patience. Yeah, the flow that you provided is basically it. with a couple of other steps.

     

    1. Teacher picks Curriculum Year level

    2. Then Subject

    3. Then Curriculum Covered and Elaboration 

    4. Then, selects the house (they are assigned to one of four)

    5. Then the house number is selected (class number)

    6. Then year level (houses range in age from 7 - 12 so need to define. This is different to the curriculum year level as a student may be on an adjusted program - Be in Year 7, but covering Year 5 curriculum for example)

    7. This then populates the list of students in that class for that age and a student is selected

    8. Then comments are selected across multiple pages and stitched together in a coherent paragraph for that lesson.

     

    At the end of the process I would like to have the perhaps 30 comments per adjusted student  over a 10 week period arranged down a PDF document based on the date of entry and subject so we can upload this for funding.

     

    Basically to get funding for students with needs, all teachers now have to document the lessons adjustments for each lesson fro each student. Writing it from scratch is time consuming. I'm hoping to speed up the process.

     

    I will check out the Encodian connector and start the basics.

     

    Cheers

     

  • Newbie2021 Profile Picture
    14 on at

    Hi @Anonymous ,

    I have made some progress; but have a bit of an issue with static data. I had been creating SharePoint lists to lookup; however, they are open to all staff and there was a need to reduce the number of them.

     

    As there are some lists that don't need to be updated or changed (Curriculum etc) I have uploaded them from an excel file directly into power apps.

    While they are working fine, I have a persistent message on the screen that the form isn't connected to any data yet, even though data is displayed.

     

    Newbie2021_0-1619855425015.png

     

    My understanding is that this is happening because the static data isn't a data source as it can't be edited?

     

    I am still able to collect it.

     

    Newbie2021_1-1619855606923.png

    Is it okay to ignore this message and continue, or will it create issues?

     

    Cheers

     

     

     

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard