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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.