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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
bdehning
Post Prodigy
Post Prodigy

Dynamic Fiscal Month Sorting Column

I need a sample report to show me how to create a dynamic Month Sort Column.  I use Count +0 and have numerous companies with diffent fiscal Months and have a Start Date Column.  

3 REPLIES 3
Anonymous
Not applicable

Hi  @bdehning ,

I created some data:

vyangliumsft_0-1709185845950.png

When you say "dynamic Month Sort Column" do you want to sort by 1-12 or do you want to sort by the number of companies in each month?

Power BI's default sorting is alphabetical, so the following will happen, you can create a new table to join and use the columns of the new table for sorting.

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
SUMMARIZE(
    'Table','Table'[Month],
    "mindate",MINX(FILTER(ALL('Table'),'Table'[Month]=EARLIER('Table'[Month])),[Date]),   "count",CALCULATE(DISTINCTCOUNT('Table'[companies]),FILTER(ALL('Table'),'Table'[Month]=EARLIER('Table'[Month]))))

vyangliumsft_1-1709185845952.png2. Connecting the relationship between two tables.

vyangliumsft_2-1709185884795.png

3. Setting up the scheduling sequence.

If you want to sort by 1-12, click [Month] - Column Tools - Sort by Column - [mindate]

vyangliumsft_3-1709185884797.png

vyangliumsft_4-1709185899327.png

If you want to sort by the number of companies based on each month, click [Month] - Column tools - Sort by column - [mindate]

vyangliumsft_5-1709185917151.png

vyangliumsft_6-1709185917155.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

To answer your question,  I have a column chart in which I want to show the counts per month for each company that is selected by a slicer.  Count + 0 has been providing me with 0 months before companies were customers.    I do have have each companies start date, which I think is the key.   I will take a look at your soluation later in the week or on Saturday.  

 

The chart should begin with the month the company became a company which could be any day of the year and there are thousands of companies.  

Ritaf1983
Super User
Super User

Hi @bdehning 

Please refer to the linked video:

https://www.youtube.com/watch?v=oviIwj3pJEE

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.