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
Answered

Filter table twice

(0) ShareShare
ReportReport
Posted on by 168

Hi,

 

I am trying to filter a table I am displaying on my screen twice,

First it needs to be filtered if the status begins with "Transfer From" and then if this record is after "DatePick","HourDropdown" and "MinuteDropdown" which is a date picker, hour dropdown and minute dropdown box on my screen.

 

In the items property of the table I have

SortByColumns(
 Filter(tblog,StartsWith(status,"Transfer from")
 ),"statusupdated", Ascending)

 

How do I build the date and time into it aswell. The date and time is recorded in the statusupdated column of my table.

 

I'm new to powerapps

Categories:
I have the same question (0)
  • C-Papa Profile Picture
    1,836 on at

    This should do the trick

     

    SortByColumns(
    Filter(tblog,StartsWith(status,"Transfer from") && Created > DateTimeValue(DatePick.SelectedDate&" " & HourDropdown.Selected.Value & ":" & MinuteDropdown.Selected.Value)


    ),"statusupdated", Ascending)

  • MooseBot88 Profile Picture
    168 on at

    It doesn't like the "created" part of the formula.

  • MooseBot88 Profile Picture
    168 on at

    I wonder if this is because my datasource is excel. The time and date is actually a column called statusupdated?

  • MooseBot88 Profile Picture
    168 on at

    This doesn't work either. 🤔

    SortByColumns(
    Filter(tblog,StartsWith(status,"Transfer from") && tblog.statusupdated > DateTimeValue(DatePick.SelectedDate&" " & HourDropdown.Selected.Value & ":" & MinuteDropdown.Selected.Value)
    ),"statusupdated", Ascending)
  • C-Papa Profile Picture
    1,836 on at

    try this

     

    SortByColumns(
    Filter(tblog,StartsWith(status,"Transfer from") && statusupdated > DateTimeValue(DatePick.SelectedDate &" " & HourDropdown.Selected.Value & ":" & MinuteDropdown.Selected.Value)
    ),"statusupdated", Ascending)

     

    Is your column in excel formatted as a date time column? if its a string this will not work

  • MooseBot88 Profile Picture
    168 on at

    Hi,


    This is formatted as dd/mm/yyyy hh:mm but the above doesn't work.

  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    have a look at this video, at around 18 minutes it shows you how it should be formatted in excel, if it's not formatted like this you will need to remove the data source from within PowerApps, format it correctly, and re add it into PowerApps. 

     

    Power Apps Time zones, UTC, SharePoint, and Excel - YouTube

  • MooseBot88 Profile Picture
    168 on at

    Watching the video has been great, I think its best storing my date/time in string format as i'm from the UK and then using the DateTimeValue format.

     

    I changed statusupdated to DateTimeValue(statusupdated) and this seems to work.

     

    Thank you

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard