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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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