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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
vanessafvg
Super User
Super User

Finding a position with M and its subsquent rows

I have a whole bunch of forms in excel which when i pull in sometimes has the same values but on different rows.  So if  I keep a range rows , i might sometimes miss the values im looking for.   The issue is that I need to pull in the row that has a certain value, but i also need to pull in the next row which may or may not have a value, and the values will vary.  So basiscally i need to find a range of rows but its condition is based on the value not the row number.

 

How do i find a position based on some text and then pull in that row and its 2 subsequent rows?

 

thanks





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi vanessafvg,

 

Tables in Power BI don't have row numbers, so to achieve assigned row number, you should create an index  as its row number column. Click Add Column->Index Column. Then you can create conditional column to achieve the row numbers.

3.PNG  4.PNG

Regards,

Jimmy Tao

 

 

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi vanessafvg,

 

Tables in Power BI don't have row numbers, so to achieve assigned row number, you should create an index  as its row number column. Click Add Column->Index Column. Then you can create conditional column to achieve the row numbers.

3.PNG  4.PNG

Regards,

Jimmy Tao

 

 

@v-yuta-msft once you have got the index, how do you then though keep only a range of rows from that?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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!

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!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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