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 : 2UojO7b9uH5AjPXcDNlKQR
Power Apps - Building Power Apps
Unanswered

Get Value left of decimal for a Filter in a gallery from another datatable id

Like (0) ShareShare
ReportReport
Posted on 5 Aug 2022 14:03:51 by

I have the following code Filtering a gallery:  Items property below

 

With({records:
SortByColumns(
Filter(t_Large_Bids_Rework_Master_Data_PA,
RW_REQUESTOR_Racfid = varCurrentUserRacfid && !IsBlank(RW_Status)
), // closed paren on Filter
"RW_Old_Large_Bid_Number", Descending
)
},
ForAll(records As _item,
Patch(_item, {max: Max(Filter(records, Int(RW_Old_Large_Bid_Number)=Int(_item.RW_Old_Large_Bid_Number)), RW_Old_Large_Bid_Number)})
)
)

 

Now i need to add an additional  AND to the mix:

If i click on row in Upper Datatable (dtbl_Large_Bid) where "Large_Bid_Id" is 8 then i need the bottom gallery(glsy_ReworkId) to only display rows that startwith 8.4, 8.3, 8.2 etc...

Right Now the Bottom Gallery is retunring all rows.

DAVIDPOWELL_0-1659707820431.png

When I add: this to the filter statement:

and Value(Left(RW_Old_Large_Bid_Number,Find(".",RW_Old_Large_Bid_Number))) = Value(dtbl_MyRequests.Selected.Large_Bid_Id)

 

With({records:
SortByColumns(
Filter(t_Large_Bids_Rework_Master_Data_PA,
RW_REQUESTOR_Racfid = varCurrentUserRacfid && !IsBlank(RW_Status)
and Value(Left(RW_Old_Large_Bid_Number,Find(".",RW_Old_Large_Bid_Number))) = Value(dtbl_MyRequests.Selected.Large_Bid_Id)

), // closed paren on Filter
"RW_Old_Large_Bid_Number", Descending
)
},

ForAll(records As _item,
Patch(_item, {max: Max(Filter(records, Int(RW_Old_Large_Bid_Number)=Int(_item.RW_Old_Large_Bid_Number)), RW_Old_Large_Bid_Number)})
)
)

 

 

Dave

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 06 Aug 2022 at 02:34:00
    Re: Get Value left of decimal for a Filter in a gallery from another datatable id

    @Anonymous 

    Check out the Trunc() function. It returns the Integer portion of the number with a decimal.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete