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 / Get Value left of deci...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard