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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MiguelSaldana77
Resolver I
Resolver I

Ordering columns with same description

Hi,  I have a problem ordering a column,  because son elements have different Ids,  This is an example

 

Column id
A1
A2
A1
B3
C4
D5
E6
E7

 

I expect this Order

 

Column id
A1
B3
C4
D5
E6

 

How could  do This ?

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @MiguelSaldana77 

You can  try to create a calculate table as below:

Soultion1 = SUMMARIZE('Table','Table'[Column ],"Id",MIN('Table'[id]))

You also can create a calculate column :

Soultion2 = CALCULATE(MIN('Table'[id]),FILTER('Table','Table'[Column ]=EARLIER('Table'[Column ])))

 

Here is a sample .

pbix attached

 

Best Regards,
Community Support Team _ Eason
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

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @MiguelSaldana77 

You can  try to create a calculate table as below:

Soultion1 = SUMMARIZE('Table','Table'[Column ],"Id",MIN('Table'[id]))

You also can create a calculate column :

Soultion2 = CALCULATE(MIN('Table'[id]),FILTER('Table','Table'[Column ]=EARLIER('Table'[Column ])))

 

Here is a sample .

pbix attached

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@MiguelSaldana77 , In case you are looking for a new column as a sort column

sort column = minx(filter(Table,[Column] =earlier([Column])),[id])

AiolosZhao
Memorable Member
Memorable Member

Hi @MiguelSaldana77 ,

 

Create a measure like below:

Measure 5 = MIN(your_table[id])

 

Then put the "column" and Measure in the table.

 

Please try.

Aiolos Zhao 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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