Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Same Period Last Week

Hello... I'll simplify this by having only five columns within the SalesTransaction table:


TransDate (eg. 05/29/2018)

TransTimePeriod (eg. 06:30-07:00)

SaleAmount (eg. 200.00)

ThisWeek ( measure where = 1 when True)

LastWeek (measure where= 1 when True)


I also have a Date table.


I want to create a visual that shows the following:




Essentially I need to summarize the SaleAmount for each TransTimePeriod (easy so far), and then compare it for the same period last week (which is where I'm getting stuck).






ChandeepChhabra Solution Specialist
Solution Specialist

Re: Same Period Last Week

@finzilla Please share your sales transaction table

Frequent Visitor

Re: Same Period Last Week

Here is a simplified example of the SalesTransaction table (it's a whole lot more sophisticated but this will do):




Date file is just a list of dates.

Microsoft v-jiascu-msft

Re: Same Period Last Week

Hi @finzilla,


Please check the demo in the attachment. 

1. I would suggest adding a column in the date table.

WeekNum = WEEKNUM([Date],2)

2. Create three measures.


Today =
CALCULATE ( SUM ( Table1[SaleAmount] ), 'Calendar'[Date] = TODAY () )
LastWeek =
    SUM ( Table1[SaleAmount] ),
        = WEEKNUM ( TODAY (), 2 ) - 1
Variance = [Today] - [LastWeek]

Same Period Last Week.PNG


















Best Regards,


Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors