Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
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).
Then I connected those two tables with 'AcceptanceDate' and 'Date'.
Afterward, I added to column bar in the Report View with these data selected for X and Y axes.
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!!!
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
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
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.
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
I created an index column for sorting order. So for example, all FY15/16 are given 1, FY16/17 are given 2.
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.
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 you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |