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
Anonymous
Not applicable

Date Sort

I have a month that is a text column.  I created a date table and linked them together with the month number but the sort isn't working in chronological order.  I've literally been working on this for 3 days.  😞  What am I doing wrong?  I'm new to Power BI so I'm obviously missing something.  I've been watching videos and reading till my eyes are shot.

 

 

TYOzzy_0-1607963414721.png

Any help would be greatly appreciated.  

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous ,

 

According to my understanding , there's a relationship between two tables based on Month and you want to sort Month in Table1 by Month Number in Table2 ,right?

 

You could create visuals with Month in Table1 and Month Number in Table2 since the relationship has been established between the two tables. And then sort by Month Number ascending.

12.16.4.2.jpg

 

Or you could use LOOKUPVALUE() to add a new column and then sort ascending like this:

Month Number =
LOOKUPVALUE ( 'Table2'[Month Number], 'Table2'[Month], 'Table1'[Month] )

12.16.4.1.jpg

 

Here is the pbix file.

 

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

 

Best Regards,
Eyelyn Qin

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

To my knowledge, it's by design.  When more than one field is placed in Value fied, the title will be displayed in order to let users know each value more clearly. There is no such misunderstanding/confusion when there is only one value. 

12.17.3.1.gif

 

In addition, I suggest you creata a new post to get more engineer involved since the original issue has been solved. Thank you ~

 

Best Regards,
Eyelyn Qin

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

According to my understanding , there's a relationship between two tables based on Month and you want to sort Month in Table1 by Month Number in Table2 ,right?

 

You could create visuals with Month in Table1 and Month Number in Table2 since the relationship has been established between the two tables. And then sort by Month Number ascending.

12.16.4.2.jpg

 

Or you could use LOOKUPVALUE() to add a new column and then sort ascending like this:

Month Number =
LOOKUPVALUE ( 'Table2'[Month Number], 'Table2'[Month], 'Table1'[Month] )

12.16.4.1.jpg

 

Here is the pbix file.

 

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

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Thanks so much!  I appreciate all the help and the files you provided.  It was very helpful.  Now that part is working, I have another issue. 🙂  It's a very weird one to me.  I have a row title that's not showing until I add another row to it.  It should be showing the title "Diagnostic Procedures".  If you see in the first pic, it's not there, but as soon as I add another row it appears.  The "ADP" isn't supposed to be there, I just added it to demonstrate the issue I'm having.  If I remove "ADP" from the value, the "Diagnostic Procedures" disappears.  I hope that makes sense. Any ideas?

 

TYOzzy_0-1608178890618.png

TYOzzy_2-1608178994138.png

 

TYOzzy_3-1608179222589.png

 

 

 

Anonymous
Not applicable

Hi @Anonymous ,

 

To my knowledge, it's by design.  When more than one field is placed in Value fied, the title will be displayed in order to let users know each value more clearly. There is no such misunderstanding/confusion when there is only one value. 

12.17.3.1.gif

 

In addition, I suggest you creata a new post to get more engineer involved since the original issue has been solved. Thank you ~

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

That makes sense.  I don't like it, but it makes sense. 🙂   Thanks!

blopez11
Super User
Super User

In this view, data view of your tables, the sort doesn't apply

Sorting is by data type

 

The "sort by" is applied to visuals

Anonymous
Not applicable

Yes, but the visual looks that way too.  It's not sorting chronologically.   

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.

Top Solution Authors
Top Kudoed Authors