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.
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
Solved! Go to Solution.
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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
98 | |
80 | |
75 | |
66 |
User | Count |
---|---|
136 | |
109 | |
104 | |
82 | |
73 |