Forum Discussion

shri0025's avatar
shri0025
Helper II
2 years ago
Solved

create new Column

Hi  Team  Please help me    i need  new Column     Gate entery Basis  if  gatey entery multipule  i need single amount  Freight amount   Like my output. Gate entry Freight Amount CDA1031293 ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi shri0025 ,

    Please try below steps:

    1. add an index column in Power Query pane

     

    2. create a new column with below dax formula

    Column =
    VAR cur_entry = [Gate entry]
    VAR cur_index = [Index]
    VAR tmp =
        FILTER ( 'Table', [Gate entry] = cur_entry )
    VAR _a =
        MINX ( tmp, [Index] )
    RETURN
        IF ( cur_index = _a, [Freight Amount], 0 )
    

    Please refer the attached .pbix file.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.