Sorting Months in PowerPivot

ImadDabbura

New Member
Joined
Dec 17, 2014
Messages
2
Hey guys,

I have sales for 3 products over time which means i have 3 same months for different categories.
Product A Jan
Product B Jan
Product C Jan

How can i sort months in powerpivot other than YearMonth because it doesnot work?


Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
The "Jan" is in your sales table, or do you have a separate Calendar table? What do you want the output to actually look like? Why does YearMonth "not work" ?
 
Upvote 0
The "Jan" is in your sales table, or do you have a separate Calendar table? What do you want the output to actually look like? Why does YearMonth "not work" ?

I have column for dates and i used FORMAT formulas to add Month,Day, and Year columns in PowerPivot.
When presenting the data via PowerView, the Months are shown in alphabetic order. I tried the monthyear trick but its giving me error message that cant be sorted because there is more than one data for each month per year which make sense.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Year[/TD]
[TD]Month
[/TD]
[/TR]
[TR]
[TD]Product A[/TD]
[TD]2005
[/TD]
[TD]June[/TD]
[/TR]
[TR]
[TD]Product B[/TD]
[TD]2005[/TD]
[TD]June[/TD]
[/TR]
[TR]
[TD]Product C[/TD]
[TD]2005[/TD]
[TD]June[/TD]
[/TR]
[TR]
[TD]Product A[/TD]
[TD]2006[/TD]
[TD]July[/TD]
[/TR]
[TR]
[TD]Product B[/TD]
[TD]2006[/TD]
[TD]July[/TD]
[/TR]
[TR]
[TD]Product C[/TD]
[TD]2006[/TD]
[TD]July[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
You need a column of "month numbers" (june=6, etc) then you can sort your current Month column by the new MonthNum column.
 
Upvote 0
If you make a new column of "month numbers" (june=6, etc) as Scott noted and then make a new column with =CONCATENATE([Year],[month numbers]) you can then use the Sort Column By on the Home tab where you sort the Month column which has June, July in it.
 
Upvote 0

Forum statistics

Threads
1,224,054
Messages
6,176,107
Members
452,707
Latest member
Cruzito

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