cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ConnieMaldonado
Responsive Resident
Responsive Resident

SORT the way fields appear in a table

I have a table with several values that appear (see image) based on a field called "Measure" - e.g., BegPending, Cancelled, Closed, etc.  The values appear in alphabetical order, but I need to specify the order.  What's the best way to do that.  If I create a sort field, how do I indicate that I want the values to appear based on that field?  Thanks!

 

Metric Sort.PNG

Measure Screen Shot.PNG

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @ConnieMaldonado @,

 

First you need to create a simple dimension table based on the worktype.

Then you assign the order to each worktype.

test_sort.PNG

Create a 1-1 relationship between two tables and put the worktype in the new table into the matrix.

Sort the worktype by the Custom sort.

test_sort2.PNG

 

 

 

Best Regards,
Liang
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-lianl-msft
Community Support
Community Support

Hi @ConnieMaldonado @,

 

First you need to create a simple dimension table based on the worktype.

Then you assign the order to each worktype.

test_sort.PNG

Create a 1-1 relationship between two tables and put the worktype in the new table into the matrix.

Sort the worktype by the Custom sort.

test_sort2.PNG

 

 

 

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

Mariusz
Community Champion
Community Champion

Hi @ConnieMaldonado 

 

Try this video.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

The video helped as I learned something new, but it didn't solve the problem.  I created the table with the "Order" field, but unless I add it to the table, I can't sort by it.  If I add "Order", of course it shows the numeric ordering rather than the name.  I could rename the measures to the 1 BegPending, 2 Created, 3 Closed and so on, but I was trying to avoid that.

 

Image 3.PNG

Image 4.PNG

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors