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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
bharri
Frequent Visitor

This Week vs Prior Week Daily Change

Hi everyone,

 

I want to create a line and clustered column chart with the following data:
Shared axis = Day (Monday through Sunday)
Column values = This Week and Prior Week

Line values = % Change (day this week vs same day last week)

 

The measures need to be able to handle a new year, e.g. if CurrentWeekNum = 1, PriorWeek = Max(Calendar[WeekNum]) && Year = CurrentYear - 1. My report currently has a calendar table with DayNum, WeekNum, etc. to handle this.

 

Here's an example of what I'm looking for in table form:

Data.png

Any help would be greatly appreciated. Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bharri , This seem like a week behind clicks with help from date table

 

measures 

 

This Day = CALCULATE(sum('Table'[Clicks]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))

or

This Day = CALCULATE(sum('Table'[Clicks])))

 

7 behind = CALCULATE(SUM('Table'[Clicks]),dateadd('Date'[Date],-7,DAy))

 

also check

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

 

WOW

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@bharri , This seem like a week behind clicks with help from date table

 

measures 

 

This Day = CALCULATE(sum('Table'[Clicks]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))

or

This Day = CALCULATE(sum('Table'[Clicks])))

 

7 behind = CALCULATE(SUM('Table'[Clicks]),dateadd('Date'[Date],-7,DAy))

 

also check

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

 

WOW

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Perfect! Thank you for responding so quickly.

Just as an aside, is it possible to have Monday through Sunday always visible in the chart, filled with the prior week numbers?

Currently it's only showing Monday through Wednesday (today).

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.