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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Balaraju
Helper II
Helper II

How to replicate Previous Year value with current Year value

Hi All Good morning,

 

I have one scenario like how to replicate previous year value with current year value the data like below.

Balaraju_0-1667540066807.png

In the column is star having value for current year I wanted that value should replicate in previous year also the out put table like below.

Balaraju_1-1667540192477.png

pls help me out on this.

 

Thanks,

Balaraju.

 

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

Hi @Balaraju ,

 

If [Is Star?] is in your underlying data, I suggest you to try "Fill up" function to achieve your goal.

Replace "" by "null" in [Is Star?] > Fill up

My Sample:

RicoZhou_0-1667813121420.png

Result is as below.

RicoZhou_1-1667813137962.png

For reference:

Fill values in a column - Power Query | Microsoft Learn

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @Balaraju ,

 

If [Is Star?] is in your underlying data, I suggest you to try "Fill up" function to achieve your goal.

Replace "" by "null" in [Is Star?] > Fill up

My Sample:

RicoZhou_0-1667813121420.png

Result is as below.

RicoZhou_1-1667813137962.png

For reference:

Fill values in a column - Power Query | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HoangHugo
Solution Specialist
Solution Specialist

Hi, try this

 

new_Is_star_column = MAXX(CALCULATETABLE([data table],[Product column] =EARLIER ([Product column]),MONTH([MMM-YY column]) = MONTH(EARLIER([MMM-YY column]))), [Is start column])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.