cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DonV
Frequent Visitor

Populate dropdown with all Fridays

Based on some reading in the forums, this doesn't seem possible but I'll ask anyway...

 

The simple version would be to populate a dropdown with ShortDate of all Fridays in this year. If I can solve that, I can solve the more complex version, which is:

 

Populate a dropdown of all Fridays between 90 days before current date and now.

 

Loops don't exist, and I don't think I can force fit ForAll for this use. 

1 ACCEPTED SOLUTION

Accepted Solutions
goobernoodles
Advocate III
Advocate III

What data source?  If you're using SQL, this would be a job for a date table.

 

https://www.mssqltips.com/sqlservertip/4054/creating-a-date-dimension-or-calendar-table-in-sql-serve...

 

Since the table includes the weekday of any given date in the table, you can filter for fridays easily, right from PowerApps.  That said, you may be able to make life easier on yourself even further by creating dynamic views, based off of the date at execution.  I create a view that only shows dates for "this week" for example.  Creating a view that only pulls Fridays no older than 90 days is fairly simple:

 

 

 

 

View solution in original post

2 REPLIES 2
goobernoodles
Advocate III
Advocate III

What data source?  If you're using SQL, this would be a job for a date table.

 

https://www.mssqltips.com/sqlservertip/4054/creating-a-date-dimension-or-calendar-table-in-sql-serve...

 

Since the table includes the weekday of any given date in the table, you can filter for fridays easily, right from PowerApps.  That said, you may be able to make life easier on yourself even further by creating dynamic views, based off of the date at execution.  I create a view that only shows dates for "this week" for example.  Creating a view that only pulls Fridays no older than 90 days is fairly simple:

 

 

 

 

View solution in original post

It's for CDS but I guess the same applies. Never thought of this being a widespread practice but I guess it is.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (46,672)