Pivot Challenge - (column repeat itself for each month)

hafiz_asim

New Member
Joined
Nov 26, 2017
Messages
4
Data Set
Proj IDCont ValueEstimationsalescostgpMonth
1​
250000​
200000​
50000​
40000​
10000​
Apr
1​
250000​
200000​
62500​
50000​
12500​
May
1​
250000​
200000​
75000​
60000​
15000​
June
Table 1
Pivot
Column Labels
AprMayJune
Row Labels Cont Value Estimation sales cost gp Cont Value Estimation sales cost gp Cont Value Estimation sales cost gp
1
250000​
200000​
50000​
40000​
10000​
250000​
200000​
62500​
50000​
12500​
250000​
200000​
75000​
60000​
15000​
Grand Total
250000​
200000​
50000​
40000​
10000​
250000​
200000​
62500​
50000​
12500​
250000​
200000​
75000​
60000​
15000​
Table 2
Required
AprMayJune
Row Labels Cont Value Estimation sales cost gp sales cost gp sales cost gp
1
250000​
200000​
50000​
40000​
10000​
62500​
50000​
12500​
75000​
60000​
15000​
Grand Total
250000​
200000​
50000​
40000​
10000​
62500​
50000​
12500​
75000​
60000​
15000​
Problem
Data Set is coming from SQL table, this is how its being read by power pivot, i.e in an unpivot mode.
How can I achieve Table 2 result through pivot by altering the data model, through DAX may be summarise function, or any other way? Please guide
as soon as I bring months over column values, there is a repetition for cont Value and Estimation for each month which I don’t want. I want to present like table 2
Sets are one way however its very cumbersome and not flexible, for a little change you need to redo the set creation.
Please Guide.
Thanks
 

Attachments

  • Pivot Column problem.png
    Pivot Column problem.png
    25.4 KB · Views: 10

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,470
Messages
6,124,992
Members
449,201
Latest member
Lunzwe73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top