Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jdw_rhodes
New Member

Calculate the Sunday Date

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!

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

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


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
jdw_rhodes
New Member

Yes that's what I was thinking. Making a column of Sunday of Week that is. Thank you so much!

OwenAuger
Super User
Super User

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


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.