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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MrBenn
Helper II
Helper II

Calculating measures over a non-standard week

I need to be able to calculate measures where the week is defined as Friday to Thursday.  I have a calendar in which I'd like to concatenate the start and end dates for these periods as a filter also. Can anyone help?

 

e.g. "28th February to 5th March"

 

Thanks for any help

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi!, you can do this. In order to build calculations in date you need a Calendar Table to accomplish Time Intelligence. You can check how to do one here:

https://blog.ladataweb.com.ar/post/185012464051/data-modeling-como-hago-una-tabla-fecha

 

In your Date table (with power query) you can use something like this:

Date.WeekOfYear([DateColumn], Day.Friday)

 You can also add this week with dax using WEEKNUM

 

Regards, hope this helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi!, you can do this. In order to build calculations in date you need a Calendar Table to accomplish Time Intelligence. You can check how to do one here:

https://blog.ladataweb.com.ar/post/185012464051/data-modeling-como-hago-una-tabla-fecha

 

In your Date table (with power query) you can use something like this:

Date.WeekOfYear([DateColumn], Day.Friday)

 You can also add this week with dax using WEEKNUM

 

Regards, hope this helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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