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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Month Sorting

Hi all

i have a date column and from that column i extract month and year like this 

Extract Month Name

Month Name = FORMAT (Data[Date Main], "MMM" )

Extract year

Year = YEAR(Data[Date Main])

 

Extract Month Number

Month = MONTH(Data[Date Main])

in table month number and month are sorted .. but when i try to click sort by columns --- >then click on Month then this shows an error

"A circular dependecy was detected : Data[Month Name],Data[Month], Data[Month Name]"

 

whereas month name are sorted in Month Name column..

and when i create bar chart and drag Month Name then Month Name sorting is disturbed .. 

like this 

 

bakhtawarashiq_0-1663921223311.png

 

how i sort MOnth Name . 

 

6 REPLIES 6
VijayP
Community Champion
Community Champion

@Anonymous 

Select month name in DAte Table, 

VijayP_0-1663921620669.png

then select column tools , under that select Sort by Column and select Month Number Column

VijayP_1-1663921710931.png

 

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

@VijayP i tried still shows same error

TODEI
Frequent Visitor

Did you perhaps chose to sort column [Month] by column [Month Name]? 

Anonymous
Not applicable

in Month there is numbers and in month name there is names like jan, feb.. so i have to choose number column when i select name column @TODEI 

What I meant is that you can' sort column [Month] by column [Month name] and at the same time sort column [Month name] by column [Month].

 

Make sure that you only sort one way, not both ways. 

Anonymous
Not applicable

then what should i do 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors