Forum Discussion
aAmirkHan
Helper III
3 years agoDynamic 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...
- 3 years ago
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.
Ahmedx
Super User
3 years agopls 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.