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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LucaixBolha
Resolver I
Resolver I

How to extract data from multiple columns and form a new column dynamically

Hello guys!

Could someone help me with this issue please? I have a pbix file with some asset codes (like AERI3, ABCB4, and so on, each one representing one enterprise), and also with some rankings that I've created. As you can see by the names of the sheets, one of them was made via Desktop method - measures, etc, - and the other one via Power Query method.

Be it via Desktop Method or Power Query, my goal is the following one: after I select the number of rankings and the Top N Assets' Codes that I would like to be displayed, it would be generated a new table containing only the Assets' Codes filtered by these selections. So, for example: 

LucaixBolha_0-1658073095433.png

In this case I selected the Rank P/BV and the Rank Market Value, altogether with "2" for the Top N slicer. The expected result is that a new table is generated, showing a list with the Assets QVQP3B, ABCB4, RRRP3 and AESB3 (respectively the first 2 positions from the Rank P/BV and the first two from the Rank Market Value; the order of Assets to be shown from the ranks chosen doesn't matter) 

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

Thanks! 🙏


 

1 ACCEPTED SOLUTION
LucaixBolha
Resolver I
Resolver I

I got a solution (not exactly what I described, but it filters the asset column and leaves only the wanted Asset values):

I did a Top N slicer (just as in the following article), so that when I choose the positions of the rankings to be displayed, it filters everything, and gives me a list.
Dynamic TopN made easy with What If Parameter - Microsoft Power BI Community


View solution in original post

2 REPLIES 2
LucaixBolha
Resolver I
Resolver I

I got a solution (not exactly what I described, but it filters the asset column and leaves only the wanted Asset values):

I did a Top N slicer (just as in the following article), so that when I choose the positions of the rankings to be displayed, it filters everything, and gives me a list.
Dynamic TopN made easy with What If Parameter - Microsoft Power BI Community


LucaixBolha
Resolver I
Resolver I

Whoops, actually the result list in this example would be AESO3, QVQP3B, ABCB4, RRRP3 and AESB3, because in the Rank P/BV there's a tie at the first position between AESO3 and QVQP3B

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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