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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JDeMaro22
Frequent Visitor

How to sort Quarters in Bar Chart?

Hello,

 

I have a bar chart my CEO needs this afternoon but I don't know how to sort the X axis by quarters. I need it to read Q1-2022, Q2, Q3, Q4 then Q1 2023. I'm sure it can be down within the data itself but I'm not sure how.

 

Thank you,

 

Joshua

 

 

 

JDeMaro22_0-1682968037334.png

 

5 REPLIES 5
JDeMaro22
Frequent Visitor

I think this works.

 

Thanks a lot 

Greg_Deckler
Community Champion
Community Champion

@JDeMaro22 Going to depend on the structure of your data but in general construct a numeric column like this (DAX example):

 

Quarter Sort = YEAR([Date]) * 100 + QUARTER([Date])

 

Whatever your quarter column is, set it's Sort By column to this numeric column. Go to Data view, select your quarter column and in Column Tools set the Sort By column to Quarter Sort.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry, and this is the measure for the quarters:

ReferralStartQuarter =
CONCATENATE("Q",Quarter(MART_REFERRAL[ReferralDateMerged]))&"-"&Year(MART_REFERRAL[ReferralDateMerged])

@JDeMaro22 Try:

Quarter Sort Column in MART_REFERRAL Table = YEAR([ReferralDateMerged]) * 100 + QUARTER([ReferralDateMerged])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I apologize I'm new to writing DAX. I don't have a "date" column in this particular data set. In the picture above I'm using "ReferralStartQuarter". These are the date options I have:

 

JDeMaro22_0-1682969207504.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.