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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LalithaDevi
New Member

How to get data in order by id After Adding id (int) and name(string) in powerbi

Hi,

Here I want to append id and name columns as single column and want the result in descending order as per id

id      name
1       john
2       peter
7       spider
10     Arvind
100    beth
44      jack
76      Roy
22      Raj

but when I append these id and name by using - , i got the result like this when i select descending

76-Roy
7-spider
44-jack
22-Raj
2-peter
100-beth
10-Arvind

but we want the data like below

100-beth
76-Roy
44-jack
22-Raj
10-Arvind
7-spider
2-peter

As per my understanding it is taking values as string , so we are getting data like this , Could you please suggest how can i get data in order by id value

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

Hi @LalithaDevi,

You should use the "sort by column" feature- Link.
This means having both the concatenated column and the numbers column in your model.

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

Hi @LalithaDevi,

You should use the "sort by column" feature- Link.
This means having both the concatenated column and the numbers column in your model.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.