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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to add rows by incrementing a date monthly for 12 months

Good afternoon everyone and happy new year.

I would like to kindly ask for your support for the following purpose: I have to create a new column in which I can scroll the date (from a start date and an end date in two specific columns of the row) monthly. This is to be done for each row, cloning the content present in the other columns.
Here is an example of what it looks like now:

IDIssue DateDue DateAmount
X101/03/202201/03/2023€ 1.000
X227/09/202227/09/2023€ 1.200
X312/04/202112/04/2022€ 768

and how I would like to populate the new column 'MonthlyDate' scrolling monthly from the issue date (in the first case, 01/03/22) per 12 months (due date minus 1):

IDIssue DateDue DateAmountMonthlyDate
X101/03/202201/03/2023€ 1.00001/03/2022
X101/03/202201/03/2023€ 1.00001/04/2022
X101/03/202201/03/2023€ 1.00001/05/2022
X101/03/202201/03/2023€ 1.00001/06/2022
X101/03/202201/03/2023€ 1.00001/07/2022
X101/03/202201/03/2023€ 1.00001/08/2022
X101/03/202201/03/2023€ 1.00001/09/2022
X101/03/202201/03/2023€ 1.00001/10/2022
X101/03/202201/03/2023€ 1.00001/11/2022
X101/03/202201/03/2023€ 1.00001/12/2022
X101/03/202201/03/2023€ 1.00001/01/2023
X101/03/202201/03/2023€ 1.00001/02/2023
X227/09/202227/09/2023€ 1.20027/09/2022
X227/09/202227/09/2023€ 1.20027/10/2022
X227/09/202227/09/2023€ 1.20027/11/2022
X227/09/202227/09/2023€ 1.20027/12/2022
X227/09/202227/09/2023€ 1.20027/01/2023
X227/09/202227/09/2023€ 1.20027/02/2023
X227/09/202227/09/2023€ 1.20027/03/2023
X227/09/202227/09/2023€ 1.20027/04/2023
X227/09/202227/09/2023€ 1.20027/05/2023
X227/09/202227/09/2023€ 1.20027/06/2023
X227/09/202227/09/2023€ 1.20027/07/2023
X227/09/202227/09/2023€ 1.20027/08/2023
..

 

the coloured lines are for illustrative purposes only.

 

Then, I would like to create a new column "Earned Premium" as the following Excel formula:

chariotb_0-1672671615612.png

(please note that in italian the formula "SE" is equal to "IF").

Many thanks for your support!

 

Cheers

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , based on what I got, see if this can help

https://amitchandak.medium.com/power-bi-power-query-vs-dax-months-between-range-df019cec823b

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak, thanks for the link but it seems far from what I am looking for...

 

In the community I had found this solution with 'NumberFrom' very similar to what I need but it returns daily dates and not monthly. I would need to achieve a similar result by adding 11 rows to each row I already have and not 30:
How to add rows for dates between start and end dates in Power BI date range data | NateChamberlain....

Could you please help me?

 

Mnay thanks.

@Anonymous , I think, my solution is monthly. You need startdate of the month not end of month as in my case

 

Date.StartOfMonth in power query in place of EndOfMonth

 

and Eomonth([Date],-1) +1 to get the start of month in dax.

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors