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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors