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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

How to list the days between a start date and an end date

I have a table with a start date and end date and other information.

I wanted to show every day between the start and end dates.

Can I do this in DAX? 

 

 

TEste.PNG

2 REPLIES 2
HotChilli
Super User
Super User

The end date of the second line is wrong (2020).

-----

In Power Query, add a new column like this:

{Number.From([START_DATE])..Number.From([END_DATE])}

then expand the new column (from the header) to new rows .

Then change the column type to date.

Good luck.

Anonymous
Not applicable

Hi, HotChilli

 

Thanks for the help but i am in directquery data connectivity mode via oracle database and adding column only allows in import mode.

Is there a way to do it by directquery? Probably not, right? I would have to do something similar in the query from database?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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