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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
LucaixBolha
Resolver I
Resolver I

How to do sequential ranking in Power Bi

Hi guys! 

 

Does anyone could give me some advice on these two problems please?

 

1) I have different rankings for Assets, and I would like to apply them sequentially, like in the following example. 

- I have 7 Asset Codes in my example database, and if I apply the Market Value ranking and limit my number of positions to the first 3 Assets (thus Asset Code number 1 is the one with the highest market value and so on), I'd get this:

LucaixBolha_0-1660915126547.png

 

After If I apply the Volatility ranking (the ones with the lowest volatility values get the first positions), the expected result would be this:

Asset     Rank Volatility

AESB3            1

TTEN3            2

RRRP3            3

If I simply put the rank volatility together with the first table, it returns me the rank considering more than these 3 Asset Codes, like this:

LucaixBolha_1-1660915416125.png

 

2) After, I would like to be able to restrain also the quantity of Asset Codes for the subsequent rankings, like this:
            2.1) I choose to show the 6 first Asset Codes positions with the Market Value ranking;
            2.2) And after I filter the 3 first Asset Codes positions with the Volatility ranking from these 6 prior Asset Codes.

 

Does anyone have an idea how it could be done?

Here is the example file: https://drive.google.com/file/d/1N_g1fl5zkXibp6vNwy9s_oBifJCiGu0n/view?usp=sharing  


Thanks! 🙌

 

2 ACCEPTED SOLUTIONS
LucaixBolha
Resolver I
Resolver I

Ahh I discovered how to deal with the first one! I just applied a filter level on market value, in order for it to be bigger than zero, going from this: 

 

LucaixBolha_0-1660917915006.png

 

To this: 

LucaixBolha_1-1660917947798.png

Now it's only the second problem left 😯

View solution in original post

LucaixBolha
Resolver I
Resolver I

I discovered how to deal with the second one also 😄

For the second problem we have to create another table 'Top N' (which I named 'Top N 2'), and do the same measure that selects the ranking in function of these slicers ("Top N 2 Volatility"). Now we have two independent slicers, and the selections works in the same table:

LucaixBolha_1-1660935350910.png

 

View solution in original post

2 REPLIES 2
LucaixBolha
Resolver I
Resolver I

I discovered how to deal with the second one also 😄

For the second problem we have to create another table 'Top N' (which I named 'Top N 2'), and do the same measure that selects the ranking in function of these slicers ("Top N 2 Volatility"). Now we have two independent slicers, and the selections works in the same table:

LucaixBolha_1-1660935350910.png

 

LucaixBolha
Resolver I
Resolver I

Ahh I discovered how to deal with the first one! I just applied a filter level on market value, in order for it to be bigger than zero, going from this: 

 

LucaixBolha_0-1660917915006.png

 

To this: 

LucaixBolha_1-1660917947798.png

Now it's only the second problem left 😯

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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