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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
joshua1990
Post Prodigy
Post Prodigy

Calculate Changes from previous cycle

Hi all!

I have a table that contains weekly extracts / snapshots of transactional data:

Year-Week Snapshot Article Date Value
2023-01 A 01.01.2023 60
2023-02 B 15.02.2023 50

This table is linked to a simple calendar table.

Then this data is visualized in a simple bar chart with an aggregation on a monthly level.

Now I would like to check the changes vs the previous snapshot.

How would you do that?

1 REPLY 1
amitchandak
Super User
Super User

@joshua1990 , Create a table with only Week snapshot or have that in date table

 

Create a Rank on the snapshot in the new table or date table


Week Rank = RANKX('Date','Date'[Year Week Snapshot],,ASC,Dense) //YYYYWW format

 

Then you can compare

 

This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.