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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Repeat First Row from Another column

Hi Experts

 

I would like to repeat the value 202 for 0 index value in a new column for all the corresponding values in the Value_ column. The Value_ column is a calculated column. 

 

Previous IndexValue_Result
0202202
1191.9202
1191.9202
1191.9202
0202202
1191.9202
1191.9202
1191.9202
0202202
1191.9202
1191.9202
1191.9202
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Add an index column in Power Query, then create a calculated column.

Result = CALCULATE(SUM('Table'[Value_]),'Table'[Index]=1,ALL('Table'))

12.png

 

You can check more details from here.

 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Add an index column in Power Query, then create a calculated column.

Result = CALCULATE(SUM('Table'[Value_]),'Table'[Index]=1,ALL('Table'))

12.png

 

You can check more details from here.

 

 

Best Regards,

Stephen Tao

 

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

 

amitchandak
Super User
Super User

@Anonymous , Add an index column

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


Then add new column n dax

new column = maxx(filter(Table, [index] <=[Index] && [Previous Index] =0),[Value_])

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
Anonymous
Not applicable

Hi Amit - this is my problem when i add a index

Capture.PNG

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.