cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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 Index Value_ Result 0 202 202 1 191.9 202 1 191.9 202 1 191.9 202 0 202 202 1 191.9 202 1 191.9 202 1 191.9 202 0 202 202 1 191.9 202 1 191.9 202 1 191.9 202
1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous ,

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

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

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.

3 REPLIES 3
Community Support

Hi @Anonymous ,

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

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

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.

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_])

Anonymous
Not applicable

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.