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 / Bypassing ThisItem in ...
Power Apps
Answered

Bypassing ThisItem in a DataTable

(0) ShareShare
ReportReport
Posted on by 57

Hello there !

 

I have a DataTable with a column 'Places', that holds a number.

By default, it has a Text property set to ThisItem.Places  .

I modified this value and replaced it with this :

 

(ThisItem.Places - CountRows(Filter(Inscriptions;Session.idSession = ThisItem.idSession))) & " / " & ThisItem.Places

 

Basically, this is (TotalSpots - TakenSpots) & " / " & TotalSpots,    which should for instance display by default with 40 total spots/places : 

 

40 / 40

 

 

But the problem is that here, ThisItem seems to take the value already in the datatable, not the one stored in DataVerse.

So when the datatable reloads, ThisItem.Places doesn't have the value "40" like it should, but "40 / 40", and so it displays :

 

40 / 400 / 40 / 40

 

 

TL;DR : ThisItem.Property takes the value stored in the DataTable. I want to take the value from the source, DataVerse, but I don't know how.

 

Thank you for your time

Categories:
I have the same question (0)
  • NathanC Profile Picture
    57 on at

    Quick update : tried other columns, tried tweaking a few things, no difference. As soon as I add something to ThisItem.Places, the formula breaks.

    Also, all the lines display the same value...

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @NathanC ,

     

    I'm not able to reproduce this problem. Please try and modify the source table using AddColumns function to add an additional column to hold the desired data:

    AddColumns(
     YourDataVerseTable, 
     "Rates", 
     (ThisRecord.Places - CountRows(Filter(Inscriptions;Session.idSession = ThisRecord.idSession))) & " / " & ThisRecord.Places
    )

     

    Best regards,

  • Verified answer
    NathanC Profile Picture
    57 on at

    Hi, thank you for the workaround.

    I'd rather avoid redundancy, so I used a gallery instead.

    I do feel like datatables could be more than what they are right now, because they could easily be faster and more convenient than galleries to set up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard