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

Finding difference between column values in a matrix

I have a table that looks like this:

 

Capture.PNG

 

I want to create a new column that calculate the difference between revenue of:

1. current week - last week

2. current week - 2 weeks ago

3. current week - beginning of quarter

 

for each of the segment

I also want the formulas to work in a way where everytime there's a new week's data in the matrix, the values update themselves.

 

I tried creating a Pivot column for the weeks but it does not give me the correct value. 

 

Any suggestions on how I could accomplish this?

 

Thanks

1 REPLY 1
TheoC
Super User
Super User

@Anonymous check out this link: https://www.dutchdatadude.com/ultimate-time-based-calculations-cheat-sheet-for-dax-power-bi-including-week-based-calculations/

 

It will give you everything you need plus more and provide clear directions and clarity during the process 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

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.