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
alevandenes
Helper IV
Helper IV

Priority column with ascendent numbers based on other column

Hi community,

 

I have a column that displays the stock i have in the warehouse. I would like to create a "priority" column that automatically assigns ascendent numbers based that column. In blue below what i want to achieve: any suggestions?

 

alevandenes_0-1636973203836.png

 

1 ACCEPTED SOLUTION

@alevandenes , if you need within production week

 

Rankx(filter(Table, [production Week] =earlier([production  Week]) , [Stock],,asc, dense)

 

Column Rank: https://www.youtube.com/watch?v=wDS_Vi4r9I4&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=39

Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@alevandenes , a new column

Rankx(Table, [Stock],,asc, dense)

alevandenes_0-1636975404195.png

Hi @amitchandak , thank you very much: the formula works! do you know how can i integrate the orange column into it? i want the priority numbering dependent on the production week. Thanks a lot in advance

@alevandenes , if you need within production week

 

Rankx(filter(Table, [production Week] =earlier([production  Week]) , [Stock],,asc, dense)

 

Column Rank: https://www.youtube.com/watch?v=wDS_Vi4r9I4&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=39

Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40

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.