Tuesday, June 30, 2020

How to Sort by Month Year Name in Power BI report

When you create Power BI report based on Month and Year calendar, the default sorting i s based on the alphabetic name like then screenshot below.


If we need to create a report that will display the month and year combination and sorted by the time, you will need to create a different column and apply the sorting. Here are the steps.


First you will need to crate a new column like below:
MonthYearOrder = CONCATENATE(MyCalendar[Year],right(CONCATENATE("00",MyCalendar[MonthNumer]),2))

Then click the column you need to display like "MMM_YYYY" and select "Sort by column". Pick the new column "MonthYearOrder" just created.

In the report, you will need to pick either acceding or descending to display the sequence correctly.

You could use this method to apply the sorting on other columns like "Department" based on the different order you prefer to display.

9 comments:

  1. This is a great motivational article. In fact, I am happy with your good work. They publish very supportive data, really. Continue. Continue blogging. Hope you explore your next post
    360DigiTMG big data course in malaysia

    ReplyDelete

  2. These musings just knocked my socks off. I am happy you have posted this.
    "
    hrdf claimable courses"

    ReplyDelete
  3. On the off chance that you are being mindful to gain proficiency with a few methodologies, at that point you should peruse this article, I am sure you'll get a lot of extra from this article.
    https://360digitmg.com/course/project-management-professional-pmp

    ReplyDelete
  4. "I can set up my original thought from this post. It gives all around data. A commitment of gratefulness is all together for this essential data for all,

    "hrdf training course

    ReplyDelete
  5. I was looking at a portion of your posts on this site and I consider this site is really enlightening! Keep setting up..
    data science course in delhi

    ReplyDelete
  6. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share.
    Best Institute for Data Science in Hyderabad

    ReplyDelete
  7. Power Bi is the one of the import for report analysis for best hospitals in india reports we use power Bi. Thanks for sharing the info

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete