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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
lukerlGHE
Regular Visitor

using year and quarter to sort

Hello,

 

I have two columns that I want to combine and sort with them (year and quarter):

lukerlGHE_0-1598860144041.png

But if I use the combine column in my visual and try to sort with it i does not sort by year and quarter but only by the quarter like this:

lukerlGHE_1-1598860210316.png

So I already tried to create a column with the date from both year and quarter like 1.X.2020 but I do not know how to use this column or a hierarchy of that to use as filter.

Is it also possible to rename the output that i can use from a hierarchy - right now it is called "Quartl X" (German version) and i would like to change it o just Q1 or even combine with the year and have an output like above 1/2020 etc... 

 

BR

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@lukerlGHE , for Qtr sort you need to create a qtr sort column

new column in your date table

Qtr sort = format([Date],"YYYYQ")

 

The mark this as the dort column of qtr

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
lkalawski
Super User
Super User

Hi @lukerlGHE

You can create new column with integer format - sth like 202004 - thanks to this you can sort desc or asc. 

Next select text column (expected delivery) and choose from the ribbon option: Sort by Column and choose this integer column.

lkalawski_0-1598861115572.png

 

 

 

Thanks to this you can use this expected delivery column to sort in the visual.

 



_______________
If I helped, please accept the solution and give kudos! 😀

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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