web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Date filter with dropbox
Power Apps
Answered

Date filter with dropbox

(0) ShareShare
ReportReport
Posted on by 250

Hey, 

here is the code am using but am trying to insert, so rither do a condition on the actual month i like to add a dropbox to select the month.

Thanks guys

If(
 !IsBlank(
 LookUp(
 Add_Expensive,
 DateOf >= Date(
 Year(Now()),
 Month(Now()),
 1
 ) And DateOf < DateAdd(
 Date(
 Year(Now()),
 Month(Now()),
 1
 ),
 1,
 Months
 )
 )
 ),
 Text(Sum(Add_Expensive, Income) - Sum(Add_Expensive, Purchase), "0.00€")
)

a dropbox with the name of the month, cant figure out where to but it

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @loopingmurdock 

    To get an Items property for the dropdown, create a collection 

    Collect(
     col_months,
     Calendar.MonthsLong()
    );
    ForAll(
     col_months,
     Collect(
     colNumberedMonths,
     Last(
     FirstN(
     AddColumns(
     col_months,
     "RowNumber",
     CountRows(colNumberedMonths) + 1
     ),
     CountRows(colNumberedMonths) + 1
     )
     )
     )
    )

    and use colNumberedMonths as the Items property.

    You can filter your table 

    Filter(
     AddExpense,
     Month(Dateof) = Dropdown1.Selected.RowNumber
    )

     

  • loopingmurdock Profile Picture
    250 on at

    Thanks... alot

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard