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 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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.