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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
AmyRob
Regular Visitor

X-Axis Change of Order for Fiscal Years

I have a clustered column chart to display the count of clients (the count of unique identifiers) for each fiscal year to visualize the number of clients we accept for our educational program. No matter what I try, the X-Axis is automatically reordered by the value of the Y-Axis, as shown in the screenshot below. I want the order to be in numerical order.

AmyRob_0-1697497218731.png

Let me go through the steps that I took. I am new to Power BI.

I have an 'Intake' table that contains all the client information with an application date attached. These dates are calendar year dates (data type: date). Each client has a unique identifier and an application date. 

 

I also created a 'Calendar' table, which looks like the screenshot below. It includes all the dates within the date range (2015 - 2030) that I need (data type: date). All application dates from the 'Intake' table fall under this range. And then I added Fical Years for each date (the data type of Fiscal Year is Text).

 

AmyRob_1-1697497392338.png

Then I connected those two tables with 'AcceptanceDate' and 'Date'.

 

AmyRob_2-1697497511915.png

Afterward, I added to column bar in the Report View with these data selected for X and Y axes.

AmyRob_3-1697497616047.png

I tried everything that I could find online to resolve this, including giving the calendar table another column for sortingOrder numbers and use that for "Sort by column'. 

 

I feel like I am missing something very simple here as I am a beginner. Your assistance is appreciated!!! 

6 REPLIES 6
marcelsmaglhaes
Super User
Super User

Hey @AmyRob ,

 To achieve the ordering by fiscal_year column, you need to Sort that column by the year column.  Check the image bellow and this link to more information: Sort one column by another column in Power BI - Power BI | Microsoft Learn
After you sort the column, you will be able to orderer your graph.

If this post helps, please mark as solved. 

Regards, 
Marcel

marcelsmaglhaes_0-1697499113438.png

marcelsmaglhaes_1-1697499167421.png

 

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Could you show me what your 'sales' table looks like? I honestly don't know what I am doing wrong here.

Thank you for the reply. But I get this error message. 

AmyRob_0-1697500030367.png

 

You can't have same year to differents fiscal_year. For example, 2018 - FY2018/2019 and 2019 - FY2018/2019. Its have to be 2018 - FY2018/2019 and 2019 - FY2019/2020. Check you date to assure you dind't have this situation. If you have and its necessary have to, you will need create a index column to the year column (Sort a Column with a Custom Order in Power BI - RADACAD)


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



I created an index column for sorting order. So for example, all FY15/16 are given 1, FY16/17 are given 2. 

 

AmyRob_0-1697511480515.png

 

And I went to the Report View, clicked on FiscalYear, clicked on Sort by column, and chose FY Sorting Order. But it does not do anything. 

 

AmyRob_1-1697511556560.png

 

Maybe you need change the sort in the graph. Take a look: Change how a chart is sorted in a report - Power BI | Microsoft Learn


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors