cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills 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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors