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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

New Member

Struggling to Convert Python into M!

Hi PBI friends! Looking for some help on how to convert a chunk of python code into M given that i cannot run python scripts in our PROD environments. 

Super User
Super User

You are starting with one row and want to end up with 11?

This will be based on adding a custom column in the form {[columnA]..[columnB]} which gives a list which can be expanded to new rows.

You can round your column using Number.RoundDown or Number.RoundUp

I think you'll need to define your rules and work out test cases because in the example starting at 0 and going to 11 will give you 12 rows.

Helpful resources


Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors