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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Help with Price Increase Calculations in Power BI

Of course, here's the text without that part:

I need help in Power BI to compare price increases in contracts over time.

I have a table called "Contract Increases" that contains dates and the prices paid. However, payments are not made every month for certain contracts; Sometimes there are lapses of up to 6 months without payments.

The "Contract Increases" table only records the months in which a payment was made and the corresponding year. To visualize a complete timeline per contract, I generated a new related table called "Calendario_Contract_Increases".

Then, I related the "Calendario_Contract_Increases" table to "Contract Increases" through the date column. My goal now is to calculate the percentage of price increase for each contract over the previous month, without taking into account the months with no records.

The complication is that some contracts could have had payments in January and then July, creating empty months in between. Calculating the percentage increase in these empty months would give 0%, which does not reflect reality. Therefore, I need a way to calculate the percentage increase only in months with posted prices and make sure that the previous month has a posted price.

I need help figuring out whether I need to create a new column or a new measure in Power BI to accomplish this, and also the proper format for these measures or columns. Thank you!

In this screenshot, the comparison with a month ago looks correct, but I'm looking for the one that compares between months that have values, attached image.

RichardCampos_0-1698602792816.png

In this case, you don't have prices every month, just certain months and I want to calculate that increase.

RichardCampos_1-1698602852244.png

Best regards

Richard Campos B

1 REPLY 1
MFelix
Super User
Super User

Hi @Richard-Campos ,

 

For this you need to select the row that has values not based on the previous month but on the previous selected value.

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors