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
Unanswered

power app filter

(0) ShareShare
ReportReport
Posted on by

how could I use the nnn table value to filter each of these values and get the result of each of these value's sprite? and for each of these values may I get more than one row I need to select only the first desc row order by ThisRecord.TRANSACTION_DATE,
SortOrder.Descending

noor12_0-1713694666164.png

 

Categories:
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @noor12 

    I create some test data in my side , you can refer to:

    ClearCollect(nnn , {BILL_PROFILE_NUM : "BILL01"},{BILL_PROFILE_NUM : "BILL02"},{BILL_PROFILE_NUM : "BILL03"});
    ClearCollect(FinanceView , {TRANSACTION_DATE:Date(2024,4,20),Count:1,BILL : "BILL01"},{TRANSACTION_DATE:Date(2024,4,22),Count:2,BILL : "BILL01"},{TRANSACTION_DATE:Date(2024,4,18),Count:3,BILL : "BILL01"},{TRANSACTION_DATE:Date(2024,4,25),Count:4,BILL : "BILL02"},
    {TRANSACTION_DATE:Date(2024,4,20),Count:5,BILL : "BILL03"},{TRANSACTION_DATE:Date(2024,4,1),Count:1,BILL : "BILL03"});

    Set(TestData , Ungroup( AddColumns(nnn , FilteredViewTable , Table( First( SortByColumns( Filter(FinanceView , ThisRecord.BILL = BILL_PROFILE_NUM) ,"TRANSACTION_DATE",SortOrder.Descending)  ) )) ,FilteredViewTable)       );
     
    The end result is as follows:
    vyueyunmsft_0-1713749516606.png

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     



  • noor12 Profile Picture
    on at

    I think it is work but I get a blank column

    noor12_1-1713764593803.png

     

     

  • VishalJhaveri Profile Picture
    1,169 Moderator on at
    Filter(
     Tablename, 
     ColumnName1 = "FilterValue" && 
     ColumnName2 = "FilterValue2"
    )
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @noor12 

    Thanks for your response! Can you show me your xxxx_VIEW Table in your side? Dose it contains the same "BILL_PROFILE_NUM" in your nnn table?

    And dose your  xxxx_VIEW Table contains these columns data?

    vyueyunmsft_0-1713765072759.png

     

     

    Best Regards,

    Yueyun Zhang

  • noor12 Profile Picture
    on at

    noor12_0-1713765300087.png

    yes the xxxx_VIEW continues all the nnn BILL_PROFILE_NUM and more, I need only to show the nnn

     

    and the xxxx_VIEW continues all theses column. 

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @noor12 

    Thanks for your response! 

    Or can you try to use this code if it can return code?

    Set(TestData2 , Filter( xxxx_VIEW  ,BILL_PROFILE_ID in nnn ))

    If this can not get the data in your side,Can you show the flow configuration in your side to get the nnn table in your side?

     

    Best Regards,

    Yueyun Zhang

  • noor12 Profile Picture
    on at

    noor12_0-1713766210249.png

    it is not working.

    noor12_1-1713766357090.png

     

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @noor12 

    I test it in my side , it can work , and this is not the error , it is the delegation warning.

    vyueyunmsft_0-1713767000628.png

    And what is your Datasource in your side?

    Can you try to use this code:

    Set(TestData2 , Filter(xxxView ,BILL_PROFILE_ID in Concat(nnn,BILL_PROFILE_NUM,",") ));

     

    Best Regards,

    Yueyun Zhang

  • noor12 Profile Picture
    on at

    noor12_0-1713767872779.png

    I tried the Set variable you shared and it wasn't work, so I tried to add the filter in the gallery and as you see nothing was happen. 

    noor12_2-1713768083775.png

    however, I tried to add one value only and then the filter applied. 

    noor12_1-1713768039272.png

     

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @noor12 

    Thanks for your response! How many rows in your xxx_View Table in your side? This may be caused by the delegation. And what's your data source?

    If you have less than 2000 , you can update the data limit to 2000.

    vyueyunmsft_0-1713768940912.png

     

    Best Regards,

    Yueyun Zhang

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard