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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ronrf095
New Member

How to get previous raw value by group?

Hi. I hope you are well. please could you help me with this. I want to do this calculate column or measure in power bi

Ronrf095_0-1704918953781.png

 



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ronrf095 , Assuming MT is measure, Try to use offset, You might need a better order by column. If need you can add one more column to order by

 

Last MT = CALCULATE([MT], OFFSET(-1, ALLSELECTED('Table'[Month Year Calc],'Table'[Customer Material], 'Table[File]'), ORDERBY('Table'[Filter],asc),KEEP,PARTITIONBY('Table'[Month Year Calc],'Table'[Customer Material])))

 

 

Continue to explore Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

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

View solution in original post

2 REPLIES 2
Ronrf095
New Member

thanks! it works!

amitchandak
Super User
Super User

@Ronrf095 , Assuming MT is measure, Try to use offset, You might need a better order by column. If need you can add one more column to order by

 

Last MT = CALCULATE([MT], OFFSET(-1, ALLSELECTED('Table'[Month Year Calc],'Table'[Customer Material], 'Table[File]'), ORDERBY('Table'[Filter],asc),KEEP,PARTITIONBY('Table'[Month Year Calc],'Table'[Customer Material])))

 

 

Continue to explore Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

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.