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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PassionBIdevlpr
New Member

I could not sort bar chart by fiscal calendar by date

Hello community,

 

I could not sort total sales by fiscal calendar date.Pls help how to sort.Thanks in advance.

PassionBIdevlpr_0-1686617420454.png

 

2 REPLIES 2
PassionBIdevlpr
New Member

Hello Vahid, thanks for giving solution. I did format to whole no.Data almost sorted,but  jan to sep data has been come correctly. but oct,nov and december  sorted very last as we take format has whole number. Is there any solution to resolve the issue. fyi,data sorted as following pic.

 

PassionBIdevlpr_2-1686701795627.png

 

VahidDM
Super User
Super User

Hi @PassionBIdevlpr 

Add a new column with this code and make sure to set the format to whole number:

 

Sort Month-Year = 
YEAR('Table'[Date])&MONTH('Table'[Date])

 

 

And then sort your Month-Year column with the new column:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

 

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

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors