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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Arul
Super User
Super User

Freeze Previous Week numbers in Every Week

Hi All,

I have a data which is grouped by Monday of every week. My requirement is, I need to freeze the previous week (W1) data on particular Monday and then freeze the next week of data on the upcoming week Monday (W2) and so on... The data is calculated from the same column which will change every week but I need to lock the numbers on every Monday of the week.

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


2 REPLIES 2
amitchandak
Super User
Super User

@Arul , You need to create a column like this in Date table, You can exclude weekend if needed

 

Week Type = Switch( True(),
[start week]<=Today() && [end date]>=Today(),"This Week" ,
[start week]<=Today()-7 && [end date]>=Today()-7,"Last Week" ,
[Week Name]
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak ,

Thanks for the reply.

I need to calculate it for every week but the above formula would work only two conditions I guess. I hope you got my requirement.

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.