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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
PaulSGodden
Advocate I
Advocate I

Sorting data using another field

Have created a concatenate field using Project Name and Date Logged fields e.g. Desktop Refresh (01/07/2021), etc. and am displaying it in a Stacked bar chart. I want to order it using the Date Logged field.

Have gone into the Data view and tired to sort it using the above field however I get:

 

We can't sort the Concatenate1" column by "DateLogged". There can't be more than one value in the "DateLogged" for the same value in "Concatenate1". Please choose a different column for sorting the data in "Date Logged"

2 ACCEPTED SOLUTIONS

Hey @PaulSGodden ,

 

yes, as the error says: There can't be more than one value in the "DateLogged" for the same value in "Concatenate1".

 

Fix that and it will work.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

Found the issue and have now resolved it. Thanks for your help on this.

View solution in original post

5 REPLIES 5
selimovd
Super User
Super User

Hey @PaulSGodden ,

 

when you use a sort by column each sort by field has to be unique for each value.

For example when you would sort month name by month number, how should Power BI sort if there is a row that says January is month number 1 and another row says January is month number 3.

 

So you have to make sure the sort by column always returns the same value, for example for January it must return always 1. Check that in your data model and it should work.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Thanks @selimovd for the response.

 

Understand (I think) what you've said but I am trying to sort [Project Name]-[(Date Logged)] with the [Date Logged] field. *- Checked the Data model and the format for this is dd/mm/yyyyy so I can't see how that could ever return a different answer. There may be occassions where 2 different projects get logged on the same day. Is that where the problem is?

Hey @PaulSGodden ,

 

yes, as the error says: There can't be more than one value in the "DateLogged" for the same value in "Concatenate1".

 

Fix that and it will work.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Found the issue and have now resolved it. Thanks for your help on this.

Hey @PaulSGodden ,

 

I'm happy you could solve that 😊

Could you please also mark the post as solution ✔️ that helped you to make it work?
You can mark multiple posts as solution and like this, the next person who is stumbling across this post can see immediately what worked.
 
If you need any help please let me know.
 
Best regards
Denis
 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors