Forum Discussion

Puja's avatar
Puja
Icon for Helper III rankHelper III
3 years ago
Solved

Need help with DAX

Hello All, Please, I need some help with DAX (not in PQ) I have a table below DATE        TypeA   TypeB 1/16/2021  A           B 1/30/2021  A           B 2/13/2021  A           B 2/27/2021  A ...
  • FreemanZ's avatar
    3 years ago

    hi Puja 

    try like:

    Table =
    UNION
    (
        SELECTCOLUMN(
           TableName,
           "Date", TableName[Date],
           "A", TableName[A]
        ),
        SELECTCOLUMN(
           TableName,
           "Date", TableName[Date],
           "B", TableName[B]
        )
    )