Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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
  • Anonymous's avatar
    Anonymous
    5 years ago

    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

    • Anonymous's avatar
      Anonymous
      Not applicable

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

  • Anonymous's avatar
    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'))

     

    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.