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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
sayi77
Regular Visitor

Get previous month status to new column

IDNameOrganizationCost centerDatePrevious Org.Previous Cost Center
1Michaelfirst9011 02 2021nullnull
2Richardsecond9021 02 2021nullnull
3Markthird9031 02 2021nullnull
4Johmfourth9041 02 2021nullnull
1Michaelfourth10001 03 2021first901
2Richardsecond9021 03 2021second902
3Markthird9031 03 2021third903
4Johmfourth9041 03 2021fourth904
1Michaelfourth10001 04 2021fourth1000
2Richardsecond9021 04 2021second1000
3Markthird9031 04 2021first903
4Johmfourth9041 04 2021fourth904

 

Hi all,

I have a table like above. Some changes can be made on a monthly basis. I want to create two new column and bring the previous month's status to the current month row and find any changes. Thanks for your help in advance.

1 ACCEPTED SOLUTION

Hi  @sayi77 ,

 

Could you pls explain how to get the result where I marked in red lines:

v-kelly-msft_0-1622611583746.png

 

Best Regards,
Kelly

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

View solution in original post

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi  @sayi77 ,

 

What do you mean by "status"?Is it "Previous Org." or "Previous Cost Center"?Can you provide an expected output?

 

Best Regards,
Kelly

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

Hi @v-kelly-msft 

Thank you very much for your time and help. Works great 👏

Hi,

in the table below, 2 columns on the right (Previous Org. and Previous Cost Center) are the expected outputs. The values below these 2 columns are the expected values also.

For example, Michael, who is in the "fourth" organization in March, was in the first organization in the previous month and Previous Cost Center was 901 ( you can see table below).

As I tried to explain in my first post I only need to get previous values to the column Previous Org and Previous Cost Center which you can find below table example.pb.png

Hi  @sayi77 ,

 

Could you pls explain how to get the result where I marked in red lines:

v-kelly-msft_0-1622611583746.png

 

Best Regards,
Kelly

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

sayi77
Regular Visitor

Is there anyone who can help?

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