Forum Discussion
transpose vertical column to horizontal
Hi,
I want to transpose a vertical column to horizontal, but problem is that vertical column is calculated and I have more than one company and product. Sample data and result is like following. I'm ok to add 11 columns. Please advise the formula.
Thank you
6 Replies
- AnonymousNot applicable
Inside 'Transform Data' you want to look for the options "Pivot Column" or "Unpivot Columns". In your case it seems you wish to unpivot columns. In this case you would click the drop down arrow and select "Unpivot Other Columns" to keep your solution data driven.
- AnonymousNot applicable
Hi,
The remainder column is calculated, not in Power Query. And I have more than one company and product. Pivot doesn't work here
- AnonymousNot applicable
Do you need to precalculate remainder in that case? Could you write a measure to calculate remainder and then display it on the visual you need?
- AnalyticPulse
Solution Sage
can you post your sample data and expected result separately
- AnonymousNot applicable
Hi,
Sample data is like this. M1 C/F and M2 C/F is the new column I want to get.
Reporting Attribute Sales Unit Attribute Forecast Month This Month FC Remainder M1 C/F M2 C/F Car 1 AAA Month 01 1/1/2024 2 Car 1 AAA Month 01 2/1/2024 1 1 2 2 Car 1 AAA Month 02 1/1/2024 2 Car 1 AAA Month 02 2/1/2024 1 2 Car 1 AAA Month 03 1/1/2024 2 Car 1 AAA Month 03 2/1/2024 7 2 Car 2 BBB Month 01 1/1/2024 2 Car 2 BBB Month 01 2/1/2024 0 2 2 2 Car 2 BBB Month 02 1/1/2024 2 Car 2 BBB Month 02 2/1/2024 1 2 Car 2 BBB Month 03 1/1/2024 2 Car 2 BBB Month 03 2/1/2024 7 2