Hello,
I am trying to create a label that is visible only if Today() falls within a start and end date stored in a SharePoint List entry. I cannot figure out how to do get the specific index instead of the whole column when typing the formula.
In this case I want to write an if statement that first looks for the user's name in the title column of the SharePoint and then if that is located look at the dates for that entry to see if today falls between them. How would I do this?
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
Have you tried @Jeff_Thorpe solution yet?
Try using and edit the codes below.
On your Label set the Visibilty Property to:
If(CountRows(
Filter(MyCalendarEvents,
Name.Text = "John Doe" //Name.Text is the name of the field on PA
&& Week_x0020_Start_x0020_Date >= Today() - Weekday(_dateSelected, StartOfWeek.MondayZero) //This will exclude weekends - Week_x0020_Start_x0020_Date is my StartDate on SP List
&& Week_x0020_End_x0020_Date <= Today() +5 - Weekday(Today(), StartOfWeek.MondayZero) )) >= 1, //This will exclude weekends Week_x0020_End_x0020_Date is my EndtDate on SP List
true,false)
----------------------------------------------------------------------------
Thanks,
K-A-R-L
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.
You could use the Lookup() to see if the record exists.
Hi @Anonymous ,
Have you tried @Jeff_Thorpe solution yet?
Try using and edit the codes below.
On your Label set the Visibilty Property to:
If(CountRows(
Filter(MyCalendarEvents,
Name.Text = "John Doe" //Name.Text is the name of the field on PA
&& Week_x0020_Start_x0020_Date >= Today() - Weekday(_dateSelected, StartOfWeek.MondayZero) //This will exclude weekends - Week_x0020_Start_x0020_Date is my StartDate on SP List
&& Week_x0020_End_x0020_Date <= Today() +5 - Weekday(Today(), StartOfWeek.MondayZero) )) >= 1, //This will exclude weekends Week_x0020_End_x0020_Date is my EndtDate on SP List
true,false)
----------------------------------------------------------------------------
Thanks,
K-A-R-L
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.
Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.
Did you miss the call?? Check out the Power Apps Community Call here!
User | Count |
---|---|
255 | |
204 | |
76 | |
37 | |
31 |
User | Count |
---|---|
328 | |
214 | |
123 | |
72 | |
53 |