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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Jrich18
Frequent Visitor

% Change Measure - last 7 days

Hi im looking to create a measure/measures that enables me to show the % change in price from the 2nd latest to the latest date.

 

my data is structured as so (date always 7 days apart):

 

Product|Date|Price

1 ,7th feb, 1

1, 14th feb , 2

1, 21st Feb, 3

 

so ideally it would show +33%. My data is a litle more complex in practice with multiple products.

i managed to make a function to return the latest date for that particular product, but not sure how to then return the price related to that date.

here is that function:

 

Max Date =   
VAR Uni = SELECTEDVALUE('Weekly Master'[Unique])  
RETURN MAXX( FILTER( ALL( 'Weekly Master' ), 'Weekly Master'[Unique] = Uni),
'Weekly Master'[Date]) 

 

 

thanks alot!

 

 

2 REPLIES 2
Jrich18
Frequent Visitor

Hi @amitchandak,

 

thanks for the link to your video, it helped somewhat but im still stuck. 

 

Im not using a date table but i have calculated a date rank as a calculated comuln. When calculating Current Month i suspect it is summing all values for the date rank, not only values for the date rank for that particular product :

Current Month M = CALCULATE([Average Price Monthly], FILTER(ALL(Monthly),Monthly[Date Rank]= MAX(Monthly[Date Rank])))
 
The Average price monthly measure should be the latest value
Average Price Monthly =
CALCULATE(MAX(Monthly[Non-Forecast]), Monthly[Non-Forecast]<>0 && Monthly[Non-Forecast]<>BLANK())
 
Any help is appriciated. 
Thanks.
amitchandak
Super User
Super User

@Jrich18 , You can follow the rank approch, which I have used on my WOW blog

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

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

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.