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! Request now

Reply
Anonymous
Not applicable

Calculation - Continuance

I have been asked to perform a calculation to show continuance probabilities which uses a multiplication of two measures in the prior month, one of which is the value I'm trying to caclulate.  In .xls it would be simple to refer to the row above and run the calculation.  However, in power bi I'm struggling to work out how to do this.

 

It would be similar to this in Column A*Column B, where column B is the column being calculated. In the image E8 equals D7*D8.  I'm wondering if the PRIORMONTH Functioin would do it, but feel that it will throw a circular reference.

Capture.PNG

 

Any help greatly appreciated.

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Are you referring to  function 'PREVIOUSMONTH' ? It is a time intelligent function, you need to ensure that you have a continuous date table when using it.

As mentioned by amitchandak ,you can also create a Index column in Advanced Editor.

Then you can try formula as below :

 

Column2 = CALCULATE(MAX('Table'[Column1]),FILTER('Table','Table'[Index]=EARLIER('Table'[Index])-1))
continuance probabilities = 'Table'[Column1]*'Table'[Column2]

 

15.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Are you referring to  function 'PREVIOUSMONTH' ? It is a time intelligent function, you need to ensure that you have a continuous date table when using it.

As mentioned by amitchandak ,you can also create a Index column in Advanced Editor.

Then you can try formula as below :

 

Column2 = CALCULATE(MAX('Table'[Column1]),FILTER('Table','Table'[Index]=EARLIER('Table'[Index])-1))
continuance probabilities = 'Table'[Column1]*'Table'[Column2]

 

15.png

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous , How you want prior month or depend on you data.

 

Like if you can add a index column in power query  then last row values

 

A DAX new column

new column = maxx(filter(Table, [Index] =earlier([Index]) -1) ,[ColumnA])

 

 

How to add an index column https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

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
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