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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Week Over Week Change in Date

 

Hello.

I have a data set that is primarily activities and dates. Each week we update the data, but I do not replace the old data. Instead, I use the imported file name to generate a work week number. This allows me to see exactly what date each activity fell on each week.
Vastly simplified, the data looks a little like this.

Unique IdentifierWork Week ActivityStart Finish
1WW01 Design12/15/20211/31/2022
2WW01 Money2/1/20222/18/2022
3WW01 Construction2/19/202210/5/2022
4WW01 Complete10/6/202211/15/2022
1WW02Design12/15/20212/4/2022
2WW02Money2/7/20222/22/2022
3WW02Construction2/25/202210/5/2022
4WW02Complete10/6/20221/15/2023
1WW03Design12/15/20212/4/2022
2WW03Money2/7/20226/22/2022
3WW03Construction2/19/20226/15/2022
4WW03Complete12/26/20221/30/2022

I am trying to create a performance against schedule week over week. I want an indicator that displays every instance of a date change, both pull in or push out. I'm currently using a column for 'push' that indicates a '1' every time a date slips and a 'pull' column that indicates a '1' each time a date pulls in, week over week-- this both provides true/false logic as well as lets me count the number of pulls or pushes.

Unique IdentifierWork Week ActivityStart FinishStart PushStart PullFinish PushFinish Pull
1WW01 Design12/15/20211/31/2022    
2WW01 Money2/1/20222/18/2022    
3WW01 Construction2/19/202210/5/2022    
4WW01 Complete10/6/202211/15/2022    
1WW02Design12/15/20212/4/2022  1 
2WW02Money2/7/20222/22/20221 1 
3WW02Construction2/25/202210/5/20221   
4WW02Complete10/6/20221/15/2023   1
1WW03Design12/15/20212/4/2022    
2WW03Money2/7/20226/22/2022  1 
3WW03Construction2/19/20226/15/2022 1 1
4WW03Complete12/26/20221/30/20221  1

I would also like to indicate change consistency, meaning, I would like to identify consistent pushes 4 weeks in a row, 3 weeks in a row, and 2 weeks in a row.


I have this all built as a work around, but it isn't an ideal solution. My current solution identifies the max work week as the current work week and references the current work week number. This isn't ideal for my situation, because I can't show where we were in past work weeks. I need to be able to produce the visual below.

What I have:

emilymgoitia_0-1643729877113.png

What I want:

emilymgoitia_1-1643729925808.png


How do I best show changes week over week without the current week being fixed? I need to show historical trends, ie an ability to look back at a prior work week's statistics from a later work week. Currently I can't do this because by establishing the current week as the max, all calculations are relative.

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

You can try the measure like this

vxiaotang_0-1644392289810.png

link:https://community.powerbi.com/t5/Desktop/Week-over-Week-Change/m-p/243318

If necessary, you can create a week table, then put week num from that table into x-axis.

 

Best Regards,

Community Support Team _Tang

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586. Can also use a VAR instead of EARLIER. Your use case is different but the pattern is the same essentially.


The basic pattern is:
Column = 
  VAR __Current = [Value]
  VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])

  VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])
RETURN
  __Current - __Previous



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.