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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Prodruct Price Index

Hello Everyone,

 

Im trying to calculate a product price index. In my case a Avg. Rolling 12 month measure versus the Avg. Rolling 12 Month price  from 2 years ago (this is the tricky part for me, as my denominador has to be always the January of 2 years ago.)

 

Formula : (100) * ( Avg.R12M Dec 2018 price  / AvR12M January "2016"*)  

 

Where January 2016* is the comparison point of my index, and it will always be the start point equal to 100.

 

I having big problems with setting a dynamic denominator for this formula. it has to consider the actual Avg.12RM let say Dec 2018, and compare it versus the Avg.12RM price of January 2016. 

 

So basically i need to accomplish 3 steps:

 

1) Calculate a rolling 12 month of daily prices by product.

2) Create a dynamic measure as initial point of my index: set as January of  2 years ago.

3) Set the a dynamic Line graph that changes acording the denominador to display the correct versus "January" result.

 

The final formula would be  = (100) * ( Avg.R12M Dec 2018 price  / AvR12M January 2016*), but at the same time being dynamic enough, as next month 2019" it would move the denominator 1 year to become Avg.R12M January 2017.

 

Any help or suggestions?

 

Thanks,

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

I'm not sure how to share data. 

 

A mega link to PBI dummy date is : https://mega.nz/#!GGR12IAY!j4rB4ePWNDXI4QqOynlwVJbPEiPayGEVT53ZKjYP_gM

 

and the basic idea is I got the item prices in a daily basis, then I need to convert that into monthly avg, and 12RM monthly avg to finally compare it agains a baseline date. That basically is January of 2 years in the past.

Hi,

 

Sorry but i cannot understand your requirement.  Could you show your expected result on an Excel file with formulas so that i can translate those Excel formulas into the DAX formula language.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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