Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I'm trying to take a date, let's say 11/14/2023, and return the Sunday of the week that day falls within. For my PowerBI report, Monday is the first day of the week. So for 11/14/2023, the Sunday of that week it falls within would be 11/19/2023. I've looked at some date functions for dax but can't quite find what I'm looking for. Thank you for your help!
Solved! Go to Solution.
Hi @jdw_rhodes
The basic calculation you could use to convert a date to the Sunday of the same Mon-Sun week would be:
<Date> + 7 - WEEKDAY ( <Date>, 2 )
where <Date> is any expression returning a date.
The exact way to apply this would depend on the context.
For example, you could add a "Sunday of Week"column to your Date dimension table (using the above logic), and reference this column as required. This might be more efficient than computing the Sunday date on the fly.
Regards
Yes that's what I was thinking. Making a column of Sunday of Week that is. Thank you so much!
Hi @jdw_rhodes
The basic calculation you could use to convert a date to the Sunday of the same Mon-Sun week would be:
<Date> + 7 - WEEKDAY ( <Date>, 2 )
where <Date> is any expression returning a date.
The exact way to apply this would depend on the context.
For example, you could add a "Sunday of Week"column to your Date dimension table (using the above logic), and reference this column as required. This might be more efficient than computing the Sunday date on the fly.
Regards
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |