cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ShaikSayyad Helper I
Helper I

Selected dates from a calendar

Hello Mates,

I have to display a calendar and selected dates label on a Bashbord screen to filter the created on range items from SP list. please help me to build it from start level.

You can have a look on below screen for exactly what I'm looking.Calendar.png

 

 

Thanks in advance. 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Selected dates from a calendar

Hi @ShaikSayyad 

 

you can modify your expression as:
 
CountIf('Data Source Name',Region = "Region1" && DateCol >= DatePicker1.SelectedDate && DateCol <= DatePicker2.SelectedDate)
 
Here, 'Date Source Name' is the name of my data source and I am referring DateCol as the column which holds the date value. Please replace these names with the actual names.
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Selected dates from a calendar

Hi @ShaikSayyad 

 

Currently, multiple date selection is not supported in PowerApps. You can raise an idea on https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas.
 
As a workaround, you can add two date pickers and to show the label you can concatenate the values selected in both of the date pickers
 
Expression to be used on Text property of Label:
"Selected Dates: "&DatePicker1.SelectedDate&" - "&DatePicker2.SelectedDate
MicrosoftTeams-image (172).png

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
ShaikSayyad Helper I
Helper I

Re: Selected dates from a calendar

Hello 

Thanks for your suggestion, it would good idea to use date pickers but how can I filter no of records from SP list in between those two selected dates. you can refer my requirement on below screen.list11.png

I have a label to display the no of records with region value condition, could you please let me know how to resolve it.

Dual Super User
Dual Super User

Re: Selected dates from a calendar

Hi @ShaikSayyad 

 

you can modify your expression as:
 
CountIf('Data Source Name',Region = "Region1" && DateCol >= DatePicker1.SelectedDate && DateCol <= DatePicker2.SelectedDate)
 
Here, 'Date Source Name' is the name of my data source and I am referring DateCol as the column which holds the date value. Please replace these names with the actual names.
 
Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

ShaikSayyad Helper I
Helper I

Re: Selected dates from a calendar

Hi Yash,

It was not showing true count, my date and time column has in standard date and time format as you can see below screen

Date.png

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,690)