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
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
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.