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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Week over Week and comparison this year week to last year week

Hello Everyone

 

Please help!

 

I am starting my first PBI project.

But there are some problems.🤔😑

 

My customers want TABLES with

 

1. Sales by Week over Week and difference % comparison too /week comparing last week/

 

2. This year Week sales comparing Last year week sales and difference % as well. /2019.01st week comparing 2018.01st week.../

 

Are there any methods to show like that? Or it isnt possible to show like that in Power BI?🤔😐🙄😃

 

 

 

🤔😶😑

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

 

Because there is no sample data I will try to describe the approach I would take.

 

Here I"m assuming your client wants everything in Table "Matrix"

 

Sales Week Over Week :

 

Make New Column of Week Num

 

WeekNum = WEEKNUM(Table-Date)

 

Now use this column with revenue/sales data to show sales by week. 

Please make sure to change Value -Sales to sum.

 

2. Calculate Same period last year

 

SAME PERIOD LAST  =
VAR DataMaxDate =
CALCULATE ( MAX ( 'GenIQ'[Date.Date].[Date] ), ALL ('GenIQ' ) )
RETURN
CALCULATE (
[ThisWeekCount],
SAMEPERIODLASTYEAR (
INTERSECT (
VALUES ( 'GenIQ'[Date.Date].[Date] ),
DATESBETWEEN ( 'GenIQ'[Date.Date], BLANK (), DataMaxDate )
)
)
)

 

 

Regards,

Gaurav Raj Singh

 

If you need more help,

Contact with me on linkedIN :https://www.linkedin.com/in/gauravrajsingh/

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.