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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Split a single row into multiple rows

Hello Power BI community,

 

I am new to power BI and DAX therefore my skills are kinda of limited. I have to split a single row into multiple rows. let me illustrate my request :

 

Employee IDmonthsalary bonus
1Annual120003000

 

The month cell is supposed to have 12 month in stead of annual and i am supposed to have the salary and the bonus split into month (so divided by 12). The final result I am expecting should look like this:

Employee IDmonthsalary bonus
1january 1000250
1february1000250
1march1000250
1april1000250
1may1000250
1june1000250
1july1000250
1august1000250
1september1000250
1october1000250
1november1000250
1december1000250

 

So I wanted to know if it is possible to do that directly in Power BI or i have to change everything in the excel sheet?

 

Thank you 🙂

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try with below steps:

 

1. Create a new MonthName table from your existing DimDate table (if you don't have one, create a Date table)

_DimMonth = VALUES(_Date[Date].[Month])

2. Then, create a new table as below which will be your expected output

Test273Out = CROSSJOIN(SELECTCOLUMNS(Test273SplitRows,"EmployeeID",Test273SplitRows[EmployeeID],"Salary",Test273SplitRows[Salary]/12,"Bonus",Test273SplitRows[Bonus]/12),_DimMonth)

image.png        image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try with below steps:

 

1. Create a new MonthName table from your existing DimDate table (if you don't have one, create a Date table)

_DimMonth = VALUES(_Date[Date].[Month])

2. Then, create a new table as below which will be your expected output

Test273Out = CROSSJOIN(SELECTCOLUMNS(Test273SplitRows,"EmployeeID",Test273SplitRows[EmployeeID],"Salary",Test273SplitRows[Salary]/12,"Bonus",Test273SplitRows[Bonus]/12),_DimMonth)

image.png        image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.