Hi!

Can someone help me with a Let function that returning the first day of week of the current date?

This is how getting first day of current month, but I need the same for week :

**Let( x=Get(CurrentDate);**

**Date ( Month ( x ); 1; Year ( x ) ) - DayOfWeek ( Date ( Month ( x ); 1; Year ( x ) ) ) + 1**

**)**

I need this for filtering some portals on that will show different happening in a week

Assuming you consider Sunday the first day of the week:

Let (

x = Get ( CurrentDate ) ;

x - DayOfWeek ( x ) + 1

)