Forum Discussion
CONCATENATEX DAX sort by value does not work
I am currently a little desperate, because I have been sitting on the following problem for several days:
With the help of Power Query I load all excel files in a folder, change the data in Power Editor and load the data model into an Excel file.
Basically I have 3 columns: Project ID, customer name and project volume. I want to display them in a pivot table and sort them in descending order by project volume. The Project ID I have row field and the other two as values.
To display the customer name as text, I use the following DAX formula:
=CONCATENATEX(VALUES(_2020[Project/Client Name]);_2020[Project/Client Name];",";[Sum of Project Volume]; DESC)
Unfortunately, however, the table can no longer be sorted by project volume after I have displayed this measure as a value. Neither by sorting as expression in the formula, nor by the usual way.
Can anyone help me? I am very grateful for any advice!
Many greetings
- Anonymous6 years ago
After trying for many hours to resolve this issue with almost all approaches, I found the trigger to solve the problem.
I accidentally restricted the characters in the Customer Name column by using the pull function in the Power Editor. Suddenly, it worked to filter the customer's name by project volume! I'm not sure if this is the reason for the problem or if the real reason is deeper. But it solves my problem.
I hope this post helps some great users out there! Have fun
3 Replies
- AnonymousNot applicable
After trying for many hours to resolve this issue with almost all approaches, I found the trigger to solve the problem.
I accidentally restricted the characters in the Customer Name column by using the pull function in the Power Editor. Suddenly, it worked to filter the customer's name by project volume! I'm not sure if this is the reason for the problem or if the real reason is deeper. But it solves my problem.
I hope this post helps some great users out there! Have fun
- Greg_DecklerCommunity ChampionAh, sounds like perhaps you broke a relationship or something? Thanks for the update!
- Greg_DecklerCommunity ChampionI'm not sure why you couldn't sort it by Project Volume, that does not make sense to me.