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
Anonymous
Not applicable

list of orders by range and schedule

I have a table of Invoices with following fields:

Invoice Number= NUMBER
period_start = DATE
period_end = DATE
schedule = Number of Months
Now I need to create the table of invoice dates, with the date column:

if schedule is "monthly", I want to get one column with invoice number, and following rows with dates incremented by 1 month but not exceeding period_end date. Obviously the invoice number will be duplicated each incremented month

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous
Something is not clear for me, please have a look at my test and my puzzle.

4.png

 

 

Best Regards

Maggie

Anonymous
Not applicable

there will be multiple dates so if invoice 1 lasts 5 months you would need to have invoice 1 5 times with an invoice date for every month that the invoice is invoiced. Number of months can range from 1-160

Hi @Anonymous

Which date is an invoice date?

Is it from your original table?

 

Best Regards

Maggie

Anonymous
Not applicable

i have a start and end date i need to know the month dates inbetween these two dates as serperate dates for each month. So when the invoice needs to get out on a month basis

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.