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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
nawlins1976
Frequent Visitor

Weekly increase measure

I would like to track the weekly increase/decrease of count of items sold, but I'm not sure how to calculate a Weekly Change measure. Please see data sample and desired visual below. Thank you in advance for your assistance. 

CategoryDateSoldWeekly Change
Shirts4/19/20212885220
Pants4/19/2021146160
Shirts4/26/20212954526930
Pants4/26/2021158521236

 

2021-04-21_8-23-48.png

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@nawlins1976 

you can create a column

Column = 
VAR last=maxx(FILTER('Table','Table'[Category]=EARLIER('Table'[Category])&&'Table'[Date]=EARLIER('Table'[Date])-7),'Table'[Sold])
return if(ISBLANK(last),0,'Table'[Sold]-last)

1.PNG2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Jihwan_Kim
Super User
Super User

Hi, @nawlins1976 

Please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file, and the steps are numbered in front of each measure.

 

Picture2.png

 

 

https://www.dropbox.com/s/1yw1ufdfd7v3daa/nawlins.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @nawlins1976 

Please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file, and the steps are numbered in front of each measure.

 

Picture2.png

 

 

https://www.dropbox.com/s/1yw1ufdfd7v3daa/nawlins.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
ryan_mayu
Super User
Super User

@nawlins1976 

you can create a column

Column = 
VAR last=maxx(FILTER('Table','Table'[Category]=EARLIER('Table'[Category])&&'Table'[Date]=EARLIER('Table'[Date])-7),'Table'[Sold])
return if(ISBLANK(last),0,'Table'[Sold]-last)

1.PNG2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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