Forum Discussion
Unpivot columns
- 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.
Hi MFelix ,
Thank you for your prompt resposne. Yes you are correct i have created measure for those but i have tried using those columns into "Values" field and still i am getting the same result .
I can share you images of my Model if it works for you.
Please see below and let me know if we can do something on this .
Regards,
Ashish
Where does the Key figure column comes from?
Just to understand the full matrix setup
- Anonymous2 years agoNot applicable
Hi MFelix amitchandak Ahmedx Ashish_Mathur
Anything you can help me with. Its really blowing my mind .
Thanks,
Ashish
- MFelix2 years agoSuper User
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.
- Anonymous2 years agoNot applicable
Hi MFelix ,
I am not sure whether i got this or not. As you said create new table like this :
After that you said create new measure in your data model (in existing table CV_SOP) and whe i tried i am getting confused which table we need to refer in the formula. Please look below:
Now i am not sure which table i should refer to enter value ?
Can you please share the sampe PBIX?Regards,
Ashish