Forum Discussion

dreyes6's avatar
dreyes6
Helper I
4 years ago
Solved

Formula to copy same cell

Hello, 

 

Just need to know if there is a possibility to create a DAX to mirror the data from one cell to another.

 

Original Data

IDNAMEING
10AIT
10A 
10A 
10A 
1BPET
2CFINS
13DEF 
13DEF 
13DEFRetail
29LC 
29LC 
29LCManufacturing
59ONECARE
122GOATGOAT
123DYEFood and Beverage
1234BRIBRI
88Science 
88Science 
88SciencePROP
26BODBOD
74MIM 
22Mort 
22MortService

 

 

Output Should be like this

IDNAMEING
10AIT
10AIT
10AIT
10AIT
1BPET
2CFINS
13DEFRetail
13DEFRetail
13DEFRetail
29LCManufacturing
29LCManufacturing
29LCManufacturing
59ONECARE
122GOATGOAT
123DYEFood and Beverage
1234BRIBRI
88SciencePROP
88SciencePROP
88SciencePROP
26BODBOD
74MIMLIVE
22MortService
22MortService

 

We are looking for the column ING.

 

Thanks

  • Hi,

    You mean as a new Calculated Column?

    =
    VAR ThisID = Table1[ID]
    RETURN
        CALCULATE(
            MIN( Table1[ING] ),
            FILTER(
                Table1,
                Table1[ID] = ThisID
            )
        )

    Regards

  • dreyes6's avatar
    dreyes6
    4 years ago

    Hi Jos,

     

    yes a new calculated column, and it looks like your DAX works, Thank you much!!!

3 Replies

  • Hi,

    You mean as a new Calculated Column?

    =
    VAR ThisID = Table1[ID]
    RETURN
        CALCULATE(
            MIN( Table1[ING] ),
            FILTER(
                Table1,
                Table1[ID] = ThisID
            )
        )

    Regards

    • dreyes6's avatar
      dreyes6
      Helper I

      Hi Jos,

       

      yes a new calculated column, and it looks like your DAX works, Thank you much!!!