Sorting by Month in PowerView

Magnatolia

Board Regular
Joined
Jan 19, 2012
Messages
81
Office Version
  1. 365
Platform
  1. Windows
Hi all,

So I'm pretty new to PowerView. I've created a column in the Data Model to format dates into "mmm-yy" format. Created a measure to count the number of times each month occurs using a calculated count.

Problem is it sorts in alphanumeric order and note in date order. I created another measured column with the date as text field which does put my month-year into order but I lose the count-by-month.

Any thoughts? Is this even possible? I've sorted the table in the Data Model by newest to oldest but this doesn't affect the ordering in Powerview.

Thanks heaps!
Maggs
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
So I assume you have a Calendar table. If not, you should. Make sure you have one column that has the month number (=MONTH[Date])

What you need to do, is sort the period which I assume is a column in your calendar table ("mmm-yy" in your example) by the month number I mention above. To achieve this, you need to go to Sort by Column Icon in the PowerPivot screen.

I hope this makes sense to you.
 
Upvote 0
So I assume you have a Calendar table. If not, you should. Make sure you have one column that has the month number (=MONTH[Date])

What you need to do, is sort the period which I assume is a column in your calendar table ("mmm-yy" in your example) by the month number I mention above. To achieve this, you need to go to Sort by Column Icon in the PowerPivot screen.

I hope this makes sense to you.

Thanks luirib,

I'm not sure what a calendar table is but I assume I can add a field to the table with that formula. The problem however is this only suits one year. My data covers multiple years.

Thanks!
 
Upvote 0
I found workaround. I created a calculated column with the date formatted as "YYYYMM". Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,729
Messages
6,126,525
Members
449,316
Latest member
sravya

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