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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Chinna_1731
Frequent Visitor

Need to have calculated measure with reference of the same column previous value

Hello There,

 

I have situation where i need to calculate previous month, sameperiod last year in a measure however where in the measure first row value should be calculated reference for 2nd, 3rd, 4th and goes on...

 

Chinna_1731_1-1666355210435.png

 

I need a calculation result as below : 
Value_to_exponental = (0.2*Same_Period_LY)+((1-0.2)*Previous Row value)

For the first result row value it should consider Pre_Month measure and then it should take value from the current measure

2 ACCEPTED SOLUTIONS
mangaus1111
Solution Sage
Solution Sage

Hi @Chinna_1731 ,

 

you can use this measure

 

mangaus1111_0-1666369722224.png

Did I answer your question? Mark this post as a solution if I did!

View solution in original post

v-yalanwu-msft
Community Support
Community Support

Hi, @Chinna_1731 ;

Try those measures:

Pre_month = CALCULATE(SUM('Table'[Invoice Processing]),DATEADD('Table'[date],-1,MONTH))
Same_period_ly = CALCULATE(SUM('Table'[Invoice Processing]),DATEADD('Table'[date],-12,MONTH))
Value_to_exponental = (0.2*[Same_period_ly])+((1-0.2)*[Pre_month])

The final show:

vyalanwumsft_0-1666751743803.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @Chinna_1731 ;

Try those measures:

Pre_month = CALCULATE(SUM('Table'[Invoice Processing]),DATEADD('Table'[date],-1,MONTH))
Same_period_ly = CALCULATE(SUM('Table'[Invoice Processing]),DATEADD('Table'[date],-12,MONTH))
Value_to_exponental = (0.2*[Same_period_ly])+((1-0.2)*[Pre_month])

The final show:

vyalanwumsft_0-1666751743803.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mangaus1111
Solution Sage
Solution Sage

you can copy this measure

 

Value Previous_Row =
VAR MaxDate = MAX('Table15'[Date])
RETURN
IF(
    HASONEVALUE('Table15'[Date]),
                MAXX(
                    FILTER(
                           ALL('Table15'),
                          'Table15'[Date] < MaxDate
                         ),
                   'Table15'[Value]
                 )
    )
mangaus1111
Solution Sage
Solution Sage

Hi @Chinna_1731 ,

 

you can use this measure

 

mangaus1111_0-1666369722224.png

Did I answer your question? Mark this post as a solution if I did!

PBI_Helpline
Helper I
Helper I

you can use OFFSET() Function to get previous row from a Table visual, This function will not work in a calculated column, and if you need it check out below.
https://youtube.com/shorts/GxnK-FAPTAY?feature=share

amitchandak
Super User
Super User

@Chinna_1731 , If you need the last month and the same period last year

 

You can have two measures like

Month behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Month))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

 

last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

 

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

this month = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH('Date'[Date])))

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

Thanks for the response buddy!

However it doesn't seems fulfill the ask and can you please re-look into it

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Kudoed Authors