Trouble sorting by month in Power Pivot

Evans2

Board Regular
Joined
Jun 11, 2015
Messages
56
Hi,

Getting the hang of Power Pivot but I've run into a problem sorting by month name.

I created a lookup table including the numbers of each month and have a few tables with date columns that are all sorted by the month number in the lookup table.

There is one table however that is giving me an error when I try to sort the month name column by the month number column in the lookup table.

I'm not sure why I'm receiving this error for only this table when it works fine in the others.

Error:

Cannot sort Delivery Month by Month Num because at least one value in Delivery Month has multiple distinct values in Month Num. For example, you can sort [City] by [Region] because there is only one region for each city, but you cannot sort [Region] by [City] because there are multiple cities for each region.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Seems there was a month missing from one of the date columns and that was causing the issue. Sorry for the unnecessary post.
 
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,477
Members
452,728
Latest member
mihael546

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