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
roncruiser
Helper V
Helper V

Index Column skipping every 8th Row

I'm unsure how to index a column by skipping every 8 row.  Maybe that's not even the correct way to do this.

 

I received some data that's too late to change in terms of a format in the near term.

 

The parameter column contains stages as indicated by the Stage(Need) Column.  Each successive midp and DQDCC group combined forms a single stage. I need the Stage(need) column but not sure how to skip every n Rows.  In this example it would be skipping every 8th row but some other files it might be skipping every 16 rows.

 

Any help appreciated.  I'm stumped.  Hopefully it's something simple.

 

Thank you...

 

Channel
(Have)
Parameter
(Have)

Value

(Have)

Stage

(Need)

Index Row Skipping
[0][0][0]midp1400
[0][0][1]midp140 
[0][1][0]midp140 
[0][1][1]midp140 
[0][0][0]dcd-210 
[0][0][1]dcd-190 
[0][1][0]dcd-190 
[0][1][1]dcd-140 
[0][0][0]midp2111
[0][0][1]midp211 
[0][1][0]midp211 
[0][1][1]midp211 
[0][0][0]dqdcc-191 
[0][0][1]dqdcc-181 
[0][1][0]dqdcc-161 
[0][1][1]dqdcc-151 
[0][0][0]midp2522
[0][0][1]midp252 
[0][1][0]midp252 
[0][1][1]midp252 
[0][0][0]dcd-172 
[0][0][1]dcd-182 
[0][1][0]dcd-172 
[0][1][1]dcd-162 
[0][0][0]midp2733
[0][0][1]midp273 
[0][1][0]midp273 
[0][1][1]midp273 
[0][0][0]dcd-163 
[0][0][1]dcd-213 
[0][1][0]dcd-163 
[0][1][1]dcd-183 
[0][0][0]midp2844
[0][0][1]midp284 
[0][1][0]midp284 
[0][1][1]midp284 
[0][0][0]dcd-194 
[0][0][1]dcd-204 
[0][1][0]dcd-184 
[0][1][1]dcd-154 
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@roncruiser check attached solution, there are few tables, just ignore, take a look at Stage table and it has the transformation steps to achieve the goal, tweak it as you see fit.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@roncruiser glad it worked out, if anything I can explain, please ask.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

roncruiser
Helper V
Helper V

@parry2k 

Thank you for the fast response.  Immediately useful!

 

I have to study how you modified the index to skip rows.  Not quite sure upon first glance.  I'm getting better at M code but some seemingly simple stuff just stumps me.

 

Thanks again!

parry2k
Super User
Super User

@roncruiser check attached solution, there are few tables, just ignore, take a look at Stage table and it has the transformation steps to achieve the goal, tweak it as you see fit.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.