Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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"
Solved! Go to Solution.
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.
Found the issue and have now resolved it. Thanks for your help on this.
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.
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.
Found the issue and have now resolved it. Thanks for your help on this.
Hey @PaulSGodden ,
I'm happy you could solve that 😊
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
95 | |
86 | |
78 | |
66 |
User | Count |
---|---|
157 | |
125 | |
116 | |
111 | |
95 |