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 Apps
Answered

Datatable

(0) ShareShare
ReportReport
Posted on by 116

Hello,

how can I fix my datatable? I want the content of the second column in the same row as the the content of the first column.

Thank you for your answer!Screenshot 2023-08-22 101114.png

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Cedric0404,

    Do you mean that you want to delete the blank row of your second column?

     

    If so, please add a update button and set OnSelect as below:

    UpdateIf(col3,true,{Answer:""});ForAll(Filter(col3,Answer<>"") As AP,UpdateIf(col3,ID=AP.ID-1,{Answer:AP.Answer}))

     

  • Cedric0404 Profile Picture
    116 on at

    Thank you for your answer. But the part with ID doesn't work for me.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Cedric0404,

    Show me how you configure this.

     

    In my scenario, the answer column including answers just has 1 difference in id with the id from Question column, that's why I use ID=AP.ID-1

     

    You need to assign a same id for each answer as each question owns.

  • Cedric0404 Profile Picture
    116 on at

    image.png

    so this is my data table. How do I even get the ID's of my columns. Sorry I'm new to Power Apps.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    hi @Cedric0404,

    I don't know either😂

    What's your data source? SP list?

    Could you please check the fields tab, find the ID field from the list.

    vqiaqimsft_0-1692868094768.png

  • Cedric0404 Profile Picture
    116 on at

    Cedric0404_0-1692876787241.png

    so this would be my data source

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Cedric0404,

    It is better if you could tell me what exactly your data source is, Excel table? SP list? Dataverse table? SQL tale?

    If there is no primary key, go creating it.

     

    I think you could find that there are multi fields in the Add Fields tab, you should clikc the + icon and expand the field dropdown list and see if there is a primary key like ID there.

     

  • Cedric0404 Profile Picture
    116 on at

    So my data source is a list, created in powerapp with "collect". There are no more fields.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Cedric0404,

    Then you could directly refer to the ID....

    Please check my solution one more time.

     

    Not sure how you configure the ID expression, I make it in my scenario, so please post the error or the issue in your scenario.

  • Cedric0404 Profile Picture
    116 on at

    Cedric0404_0-1693299194006.png

    So this is what it looks like. It says ID is not recognized at both "ID". And also "=" is incompatible for the comparison.

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard