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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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