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
sraj
Responsive Resident
Responsive Resident

Contatenated column to sort in descending order

Hi,
Help!
How do I turn this contatenated column to sort in descending order?
Year = CONCATENATE('settl'[_year]'sched'[_yr])
 
Thank you!
1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @sraj 

According to your description, you want to concate 2 columns by DESC order .
If this , you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1672737608461.png

(2)We can click "New Column" and enter :

Column = CONCATENATEX({'Table'[Column1],'Table'[Column2]} , [Value],"",[Value],DESC)

(3)Then we can meet your need:

vyueyunzhmsft_1-1672737653239.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

View solution in original post

6 REPLIES 6
v-yueyunzh-msft
Community Support
Community Support

Hi , @sraj 

According to your description, you want to concate 2 columns by DESC order .
If this , you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1672737608461.png

(2)We can click "New Column" and enter :

Column = CONCATENATEX({'Table'[Column1],'Table'[Column2]} , [Value],"",[Value],DESC)

(3)Then we can meet your need:

vyueyunzhmsft_1-1672737653239.png

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

sraj
Responsive Resident
Responsive Resident

It didnt work, I received this "A circular Dependency was detected" error.  

Unfortunately, circular dependencies are a bit difficult to diagnose without seeing your specific model. I don't think what I suggested should have circular dependency issues in most cases (it certainly didn't in my testing).

sraj
Responsive Resident
Responsive Resident

Hi @AlexisOlson - thanks for responding, what do I place in the [Value] option?  

Leave it as is. That's the default column name for a table construction using "{ }".

AlexisOlson
Super User
Super User

CONCATENATEX allows you to specify sorting:

CONCATENATEX ( { 'settl'[_year], 'sched'[_yr] }, [Value], ", ", [Value], DESC )

 

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.