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 / analyze data in a rang...
Power Apps
Unanswered

analyze data in a range between two dates

(0) ShareShare
ReportReport
Posted on by 90

Hi, I have a problem with data extraction, when I have to analyze data in a range between two dates and my database exceeds 2000 records I attach the script that I made and that does not extract data.

 

Filter('[dbo].[USR_APPUNTAMENTI]';Value(DATAAPP)>=Value(Label38.Text); Value(DATAAPP)<=(Value(Label5_1.Text)))

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    What is the structure of your datefield "DATAAPP" in SQL.
    Also I suggests using datefield in powerapps instead of just a textbox

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • gioce Profile Picture
    90 on at
    the dataapp field is equal to 20200407 my data search must be between 20200407 and 20200414
  • eka24 Profile Picture
    20,925 on at

    It has to do with the format of the SQL Date compared with date in the label:
    Filter('[dbo].[USR_APPUNTAMENTI]';DATAAPP>=Value(Text(Label38.Text;"[$-en-US]yyyymmdd"))&& DATAAPP<=Value(Text(Label5_1.Text;"[$-en-US]yyyymmdd")))

     

    You can also replace the Labels with DatePickers and use:

    Filter('[dbo].[USR_APPUNTAMENTI]_4';DATAAPP>= Value(Text(StatDatePic.SelectedDate; "[$-en-US]yyyymmdd"))&&DATAAPP<= Value(Text(EnddDatePic.SelectedDate; "[$-en-US]yyyymmdd")))

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • gioce Profile Picture
    90 on at
    unfortunately from error on the dataapp field. What could it be? I attach image
    Powerapp.jpg
  • eka24 Profile Picture
    20,925 on at

    In your SQL Table what is the name of the datecolumn?

     

  • gioce Profile Picture
    90 on at

    DATAAPP (VARCHAR, 😎

    I ATTACH THE IMAGE

    Powerapp.jpg
  • gioce Profile Picture
    90 on at
    You would have a solution to advise?

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard