Reply
MustafaP
Frequent Visitor
Partially syndicated - Outbound

Weekly Sales Data like in Excel Pivot

Hello,

 

I have a sales report in PowerBI, i would like to do same as in Excel Weekly Differences ( with previous week )

 

In Excel Pivot i made from groupping with 7 day like below, and differences from previous week.

 

sales-byweek.jpg

I tryto get it in PowerBI, i can do but the order always wrong, i try to add serial order but now it's showing like below;

powerbi-sales.jpg

 

I tried to hide serial section but goes wrong order again.

How can i do this same like in Excel? Anybody can help?

Thank you

1 ACCEPTED SOLUTION
swikritee_p
Resolver II
Resolver II

Syndicated - Outbound

@MustafaP , You should have a sort column for week. 

Assuming the s.no can sort week correctly, you can use that as sort column. 

Click on week column -> Column Tools -> Sort By Column  -> and Choose S.No. 
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

For Week on week, you can use offset function 

Offset Previous Week = CALCULATE([Pax],OFFSET(-1, ALL('Table'[Week],'Table'[S. No]),ORDERBY('Table'[S. No])))

View solution in original post

1 REPLY 1
swikritee_p
Resolver II
Resolver II

Syndicated - Outbound

@MustafaP , You should have a sort column for week. 

Assuming the s.no can sort week correctly, you can use that as sort column. 

Click on week column -> Column Tools -> Sort By Column  -> and Choose S.No. 
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

For Week on week, you can use offset function 

Offset Previous Week = CALCULATE([Pax],OFFSET(-1, ALL('Table'[Week],'Table'[S. No]),ORDERBY('Table'[S. No])))

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)