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

View all the Fabric Data Days sessions on demand. View schedule

Reply
aAmirkHan
Helper III
Helper III

Dynamic Date Table in Power BI

Hi Power BI Expert,

 

I have a date table in Power BI by using the Calculated Table. I get files daily in a folder and I manually change the date in Power BI daily.

 

For the example, I created a date table from 01st April 2023 to 17th Aug 2023. However, I got the file latest file today now I have to change the date from 17th Aug 2023 to 28th Aug 2023 in Power BI. If I will receive file tomorrow then again I will have to change date in a date table in Power BI.

 

Can you please advise how to solve this manual work in Power BI?

 

Thank You

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

 

let
    Source = List.Generate(()=>#date(2021,4,1),(x)=>x<=Date.From( DateTime.LocalNow()),(x)=>Date.AddDays(x,1)),
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), {"Date"}, null, ExtraValues.Error)
in
    #"Converted to Table"

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RiioNEvq6napYAxiV?e=FIx55g

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

pls try this

 

let
    Source = List.Generate(()=>#date(2021,4,1),(x)=>x<=Date.From( DateTime.LocalNow()),(x)=>Date.AddDays(x,1)),
    #"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), {"Date"}, null, ExtraValues.Error)
in
    #"Converted to Table"

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RiioNEvq6napYAxiV?e=FIx55g

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
Top Kudoed Authors