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
Swamy3105
Helper IV
Helper IV

How to split the rows into 12 rows

Hi Experts,

 

I want to split the single row into 12 rows which means 12 months in a year.

 

example

Swamy3105_0-1654066868280.png

 

Result

 

Swamy3105_1-1654066909158.png

Please help on this.

 

Regards.,

Swamy

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

Hi @Swamy3105 ,

 

Suppose we have a table like this.

vcgaomsft_2-1654566255635.png

Add a new column in the power query editor.

vcgaomsft_1-1654566211678.png

vcgaomsft_0-1654566157387.png

Expand to New Rows.

vcgaomsft_3-1654566363783.png

vcgaomsft_4-1654566414094.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

7 REPLIES 7
v-cgao-msft
Community Support
Community Support

Hi @Swamy3105 ,

 

Suppose we have a table like this.

vcgaomsft_2-1654566255635.png

Add a new column in the power query editor.

vcgaomsft_1-1654566211678.png

vcgaomsft_0-1654566157387.png

Expand to New Rows.

vcgaomsft_3-1654566363783.png

vcgaomsft_4-1654566414094.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

amitchandak
Super User
Super User

@Swamy3105 , refer to the two blog, how to do that

 

Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-C...

 

Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

@amitchandak 

 

I want to split the each single row into 12 rows and add the month number.

 

Swamy3105_0-1654069265531.png

Regards.,

Swamy

@Swamy3105 , Yes, That was there in blog , Easy way out

 

generate(Table, generateseries(1,12,1) )

 

Rename the value column as the month

 

if needed divide values by 12

@amitchandak 

 

perfect, but is there any way to do it when load the data into Power BI.

 

Regards.,

Swamy

@amitchandak 

 

perfect, but is there any way to do it when load the data into Power BI.

 

Regards.,

Swamy

@amitchandak 

 

any idea on the above query.

 

Regards.,

Swamy

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.