Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Unpivot columns

Hi Everyone,   I am trying to create similar values in which i have few columns and i want to see if value in Key Figure column is equal to "Requested Sale Order" then it should only give me the va...
  • MFelix's avatar
    MFelix
    2 years ago

    Hi Anonymous ,

     

    Sorry for the late reply create a new table with the following data:

     

    Measure Key Figure
    Requestes_Sales_Order_Value Requested Sales Order
    Shiped_Sales ShippedSalesOrder
    Shiped_Sales_Order_Value ShippedSalesOrder

     

     

    Add the following measure to your model:

    Measures for Matrix = SWITCH(SELECTEDVALUE('Key Figures'[Measure]), 
                                "Requestes_Sales_Order_Value", [Requestes_Sales_Order_Value],
                                "Shiped_Sales", [Shiped_Sales],
                                "Shipes_Sales_Order_Value", [Shipes_Sales_Order_Value])

    Now use the columns on the matrix rows and the measure on the values:

    If you want you can also add a ID column for the sorting of the data.