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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
electrobrit
Post Patron
Post Patron

hours by day previous week

this seems so easy but my mind can't wrap my head around it. Trying to show how many hours spent doing certain tasks and compare to last week. 

I have used all kinds of formulas I'm finding and it's giving me totals whereas I want it by day so when i put in chart, I'm comparing week over week. 
what i'm getting.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@electrobrit,

 

If you are trying to find the same day last week, then you can create a calculated columns as follow:

 

Total Last week = VAR day_lastweek = DATEADD(Table11[Date],-7,DAY) RETURN
CALCULATE(SUM(Table11[Total Hours]),
            FILTER(Table11,
                   Table11[Date] =day_lastweek))

You will get this result:

3.PNG

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@electrobrit,

 

If you are trying to find the same day last week, then you can create a calculated columns as follow:

 

Total Last week = VAR day_lastweek = DATEADD(Table11[Date],-7,DAY) RETURN
CALCULATE(SUM(Table11[Total Hours]),
            FILTER(Table11,
                   Table11[Date] =day_lastweek))

You will get this result:

3.PNG

 

 

Anonymous
Not applicable

Hi,

 

Are you trying to return:

  • Total hours on the same day last week or
  • Total hours in whole previous week?

 

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.