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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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