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
Dave_Delfino
Frequent Visitor

creating a column with all dates between a start- and an enddate using the "new column" function

Hey Guys,

 

I'm trying to visualise a project buffer consumption where the timeline reaches from the project startdate to the project enddate. The problem is that i want to create the timeline-column with the "new column" operation using something like "datesbetween() etc."

 

getting back a table where a column is needed...getting back a table where a column is needed...

Has anybody an idea how to tackle this problem?

 

greetings,

David

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@Dave_Delfino,

 

You may use DATEDIFF Function.

Column =
DATEDIFF ( Table1[startdate], Table1[enddate], DAY )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Sam,

 

using the Datediff function gives me back a column where every row contains the NUMBER of days between the two dates. What I need is a column containing every single date between the Start- and Enddate. e.g.: 01.01.2000 / 02.01.2000 / 03.02.2000...etc.

 

The Datesinbetween function seems to do the job, but i won't get it working 😕

@Dave_Delfino,

 

You may add calculated tables.

Calendar =
CALENDARAUTO ()
Table =
GENERATEALL (
    Table1,
    SELECTCOLUMNS (
        DATESBETWEEN ( 'Calendar'[Date], Table1[startdate], Table1[enddate] ),
        "Date2", 'Calendar'[Date]
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey Sam,

 

That was the work around i allready did and made the screenshot of. I am trying to solve it only using the "new column"- formulas. There must be a way doesn't it?

 

greetings,

Dave

Hey Sam,

 

i just saw that i never attached the screenshot i spoke about.

Here you go:

the work around i talked about...the work around i talked about...

but this still isn't the answer i',m looking for...

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.