Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sudhakar111
Helper IV
Helper IV

Sorting of months in cross tab

Hi all,

 

I have an issue with sorting of months in a cross tab.Need to display the year and month.

 

But by default it is displaying in alphabelital order. Do we have any work around?

 

 Sort.png

4 REPLIES 4
vanessafvg
Super User
Super User

in your modelling tab set the monthname  column to sort by column by month number Capture.PNG





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thank you vanessafvg. I tried it but still it is displaying in alphabetical order.

 

My requirement is that the month should start with April. So for the financial year it will be 2016-Apr,2016-May and so on

 

till 2017-Mar.

 

The Year should be appended along with the month name.i tried sorting on year month number like 2016-04. it does not work even

 

if i remove the year.

Hi @sudhakar111,

 

You can try to add a calculate column to convert financial date to numeric, then drag above column to columns field, it may fix the issue.

 

Numberic Fiscal Date = VALUE(FORMAT([Date],"yyyymm"))

Capture2.PNG

 

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for the response. But i need to display the months as 2016 - Apr,2016 - May and so on and not in numbers.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.