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
NourJ
Helper III
Helper III

how to put "other" at the end in a card

Dear all, is there a way to keep the alphabet order in a card + put other at the end?

kindly note that my data have a monthly update and I cannot do it manually since I have more than 80,000 raws.

 

ex:

Apple

Banana

Orange

Other

 

thank you in advance

2 ACCEPTED SOLUTIONS
PattemManohar
Community Champion
Community Champion

@NourJ Please try this as a "New Table" and use this in your visual

 

Test98Out = 
VAR _tmp = DATATABLE("Dummy",STRING,{{"Other"}})
RETURN UNION(SELECTCOLUMNS(Test98Append,"Data",[Data]),_tmp) 

image.png





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

Proud to be a PBI Community Champion




View solution in original post

Anonymous
Not applicable

Hi @NourJ,

 

Step 1: Created Duplicate Column of which you want to sort suppose(i.e: Fruits_New)

Step 2: Created Another Calculated column (i.e: Sort Order) With Dax Formula Switch(table[Fruits],"Others","ZZZZ",table[Fruits])

Step 3: Drag Fruits_new Column to your Visual and sort by Step2 . i.e: Sortorder

 

you can also refer solved file for this here:

 

https://drive.google.com/file/d/1OzD9XfY89oJ5xs0lSjmuYc3jh5UOuhES/view?usp=sharing

 

Best Regards,

Ravi

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @NourJ,

 

Step 1: Created Duplicate Column of which you want to sort suppose(i.e: Fruits_New)

Step 2: Created Another Calculated column (i.e: Sort Order) With Dax Formula Switch(table[Fruits],"Others","ZZZZ",table[Fruits])

Step 3: Drag Fruits_new Column to your Visual and sort by Step2 . i.e: Sortorder

 

you can also refer solved file for this here:

 

https://drive.google.com/file/d/1OzD9XfY89oJ5xs0lSjmuYc3jh5UOuhES/view?usp=sharing

 

Best Regards,

Ravi

PattemManohar
Community Champion
Community Champion

@NourJ Please try this as a "New Table" and use this in your visual

 

Test98Out = 
VAR _tmp = DATATABLE("Dummy",STRING,{{"Other"}})
RETURN UNION(SELECTCOLUMNS(Test98Append,"Data",[Data]),_tmp) 

image.png





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

Proud to be a PBI Community Champion




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.