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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
abihoughton27
Helper I
Helper I

Date Table not sorting

I have created a date table for my benefits report and i have a column for which it will sort in FYmonth order 

abihoughton27_1-1634045321362.png

this is the relationship between the tables

 

abihoughton27_0-1634045302108.png

and when i use the date in a table it 1 doesn't sort in FY month sort and doesn't le me show item with no data?

abihoughton27_2-1634045401299.png

 

1 ACCEPTED SOLUTION
HarishKM
Impactful Individual
Impactful Individual

@abihoughton27 Hey Mate ,
You can create two Calculated col in your date tb.

Month Year = FORMAT(financials[Date],"Mmm-YY")
Then sort your month year using this month sort col.
HarishKM_0-1634048246801.png

Month sort = FORMAT(financials[Date],"yyyymmdd")

this will fulfil your requirement .
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.

Thanks and Regards,
Harish 

View solution in original post

9 REPLIES 9
v-eqin-msft
Community Support
Community Support

Hi @abihoughton27 ,

 

Could you please share me with the expected output and your pbix file after removing sensitive data ?

 

Best Regards,
Eyelyn Qin

 

HarishKM
Impactful Individual
Impactful Individual

@abihoughton27 Hey Mate ,
You can create two Calculated col in your date tb.

Month Year = FORMAT(financials[Date],"Mmm-YY")
Then sort your month year using this month sort col.
HarishKM_0-1634048246801.png

Month sort = FORMAT(financials[Date],"yyyymmdd")

this will fulfil your requirement .
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.

Thanks and Regards,
Harish 

Applicable88
Impactful Individual
Impactful Individual

@abihoughton27 you didn'n sort correctly the monthname to your FYmonthSort. Shouldn't Jan be 1, Feb be2 and so fourth? 

@Applicable88  My financial month starts in may so i want that to be first - so it should be May - Jun 2 etc 

@abihoughton27 Whats happens when you use "sort after column"? Does it says that you have many to many relationship?

@Applicable88 where is sort after column? 

i have a many to one relationship 

Applicable88_0-1634046946321.png

Just click on your monthname column and tell it to "sorft after" the Monthnumbers.


I hope that solves your problem. 

Best. 

I have done that for my FY month sort because i want that to be the order? i am not sure what you mean?

there is no where in the image above which says sort after? 

i want to sort from the fiancial year month sort not from the normal calander month order 

The view I got from your screenshot actually. Its not in the PowerBi Report, but in the "Data" screen. That is the middle symbol on the left ribbon in PowerBi. Afterwards just select your table and click on the Monthname column, after wards click the button I showed you in the screenshot and say "sort after" Monthnumber column. Since your Monthnumber field is in the same table it should work. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.