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 / Select and show data b...
Power Apps
Answered

Select and show data between dates

(0) ShareShare
ReportReport
Posted on by 648
I am trying to solve this , How many BB is in the table between the dates in the table Function and to show that in a textbox . and its not  working ... pls help 
 
Table name tblFunction
Logdates          Function
2018-01-01      BB
2018-01-01      BB
2018-01-02      BB
2018-01-02      AA
2018-01-03      AA
2018-01-03      BB
2018-01-03     BB
2018-01-04     AA
2018-01-04    AA
2018-01-04    BB
2018-01-04    BB
2018-01-05    AA

Datepcik_1 "2018-01-01 "
Datepick_2 "2018-01-04"
text( Sum(Filter(tblFunction, logdates > DatePick_1.SelectedDate, logdates < DatePick_2.SelectedDate), Function),BB ) )
Categories:
I have the same question (0)
  • Verified answer
    HadynM Profile Picture
    279 on at

    Hi @dalacarelia_196

     

    CountIf, or CountRows depending on your requirements, are probably what you're after.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-counts

     

    Something like:

    CountIf(tblFunction, logdates >= DatePick_1.SelectedDate && logdates <= DatePick_2.SelectedDate && Function ="BB")

    Hope that helps.

    Hadyn

  • Verified answer
    tly Profile Picture
    400 on at

    You should be able to do either:

    Text(
     Sum(tblFunction,
    logdate > DatePick_1.SelectDate,
    logdates < DatePick_2.SelectDate,
    function = "BB"
    ) )

    OR

    Text(
     CountRows(
    Filter(tblFunction,
    logdate > DatePick_1.SelectDate,
    logdates < DatePick_2.SelectDate,
    function = "BB"
    )
    ) )

    You may want to make your boolean statement include equals, if you intend on considering dates that are equal as well.

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

    HI @dalacarelia_196,

    Do you want to count the records that were in between the dates and contained “BB?

     

    I made a test .

    I created a SP list named “test2.

    4.PNG

    2.PNG

    Set the Text property of label1 to:

    CountIf(test2,Logdates>=DatePicker1.SelectedDate&&Logdates<=DatePicker2.SelectedDate&&Function="BB")

     

    Also, you can Set the Text property of label1 to:

    CountRows(Filter(test2,Logdates>=DatePicker1.SelectedDate,Logdates<=DatePicker2.SelectedDate,Function="BB"))

     

    Regards,

    eason

     

  • dalacarelia_196 Profile Picture
    648 on at

    Jippeeee thanx

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 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard