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 / Filter by name and get...
Power Apps
Answered

Filter by name and get the last day.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm using excel as DB.

i'm trying to find the last day that is like to an user. 
i'm using this sentence, but isnt working. 

Auditoria is my Table
Usuario is my "person name"

inp_Nome_Txt is name i'm looking for

Data date column 

 

First(
 SortByColumns(
 Filter(Auditoria; Usuario = "inp_Nome_TXT.Text");
 "Data";
 Descending))

 

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    Does this exact value exist in your Excel sheet?  Does it actually have .Text at the end?  Ensure the match is exact 🙂

    inp_Nome_TXT.Text

     

    Excel has a 500 row limit when using the FILTER function by Default.  You can bump it up to 2,000 rows by going to File > Advanced Settings > Delegation Row Limit and changing to 2,000.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Actualy the inp_Nome_TXT is the name of my labe, and the .Text is to get the value that is inside 
    Lable name: inp_Nome_TXT

    inp_Nome_TXT.Text = "John". 

    i'm not being rude, since english isnt my first language i'm just trying to be as much clear as i can. 

    Sem título.png
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    Thank you for the additional language.  Your English is very good indeed 🙂

     

    I would suggest making this small change: inp_Nome_TXT.text is not required to be within quotation marks.

    First(
     SortByColumns(
     Filter(Auditoria; Usuario = inp_Nome_TXT.Text);
     "Data";
     Descending
     )
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Idk why, but still doent work. 

    @mdevaney 

    Sem título.png
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    There is an red error icon on the control.  Please share the error message.  The error message will tell us what went wrong.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mdevaney 
    Value Text expected.
    The propriety in this "control" expect a text value.
    The rule make a value Record, which is incompatible.
    How to fix.
    Change the rule to produce a value {0}

     

     

     

    First(
     SortByColumns(
     Filter(Auditoria_2; Usuario = NomePessoa.Text);
     "Data";
     Descending
     )
    )

     

     

    I'm Currently using this formula. 
    i'm using a sharepoint now as my DB, 40 rows at max

    You can see my columns name in the SS as well (data = Date (Date is an sigle line text property) )

    Delegation problem.png
    Column.png
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 
    You must choose a column to display in the label.  Do this by changing your_column_name in the code below.

    First(
     SortByColumns(
     Filter(Auditoria_2; Usuario = NomePessoa.Text);
     "Data";
     Descending
     )
    ).your_column_name

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Omg, i cant believe it, you are the G.O.A.T, tnx @mdevaney. It solved my problem. 

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard