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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ckhoo2007
Helper I
Helper I

Unwanted Current Week + 1 Column

Hi All,

I have created a column using the following to show the weekly difference:


Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format

 

measures
This Week = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Prev Week = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

 

Delta % = divide([This week] -[Last Week], [Last Week])

 

So far it works fine if I display only This Week in a matrix, e.g. if this is week 25, it will show only week 25, however when I add Prev Week or Delta % in the matrix, it will show week 26 (Current Week + 1) with no This Week data and only Prev Week data , how do I get rid of that?

Thanks in advance.

 

Regards,

Choo

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ckhoo2007 , Change delta like , if needed  last week too

 

Delta % =if(isblank([This week]), blank(), divide([This week] -[Last Week], [Last Week]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ckhoo2007 , Change delta like , if needed  last week too

 

Delta % =if(isblank([This week]), blank(), divide([This week] -[Last Week], [Last Week]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks Amit!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.