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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.