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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
alanjwells
New Member

How to expand rows based on start date and duration in months

HI all,

 

I'm a bit of a Power BI newbie and I'm trying to create a visual to display revenue by month based on project revenue, start date, duration in months for the next 12 month period.

 

Basically I have a table like this:

Project NameExpected RevenueDuration MonthsStart_Month
A Project100,000510/12/2022
B Project200,000410/01/2023
C Project500,000527/02/2023
D Project1,200,00068/03/2023

 

Ideally I would be able to transferm the data into something like this:

Project NameExpected RevenueDuration MonthsStart_MonthMonthMonth Rev
A Project100,000510/12/2022Dec-2220000
A Project100,000510/12/2022Jan-2320000
A Project100,000510/12/2022Feb-2320000
A Project100,000510/12/2022Mar-2320000
A Project100,000510/12/2022Apr-2320000
B Project200,000410/01/2023Jan-2350000
B Project200,000410/01/2023Feb-2350000
B Project200,000410/01/2023Mar-2350000
B Project200,000410/01/2023Apr-2350000
C Project500,000527/02/2023Feb-23100000
C Project500,000527/02/2023Mar-23100000
C Project500,000527/02/2023Apr-23100000
C Project500,000527/02/2023May-23100000
C Project500,000527/02/2023Jun-23100000
D Project1,200,00068/03/2023Mar-23200000
D Project1,200,00068/03/2023Apr-23200000
D Project1,200,00068/03/2023May-23200000
D Project1,200,00068/03/2023Jun-23200000
D Project1,200,00068/03/2023Jul-23200000
D Project1,200,00068/03/2023Aug-23200000

 

Any assistance is appreciated.

 

Cheers,

A

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @alanjwells ,

 

You can use Power Query to expand the rows with the month start as the starting point and the duration as the number of rows.  Please see attached pbix for your reference.

danextian_0-1668743302889.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @alanjwells ,

 

You can use Power Query to expand the rows with the month start as the starting point and the duration as the number of rows.  Please see attached pbix for your reference.

danextian_0-1668743302889.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Awesome thanks, works perfectly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.