Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Any suggestion on how to change the "end date" from static to "dynamic to the (current) Present date" for capturing the data till the current date, while refreshing it,
Data - I got the data through the API
Current Issue - I am changing the end date manually in the Power Query
Solved! Go to Solution.
I have used the below formula to get the date and then passed it as a parameter in API, But Thank you for your support and suggestion
currentDate = Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"),
let
currentDate = Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"),
Source = Json.Document(Web.Contents("https://cs-intmgroservices.io/intmgmtsvc/report/nReport" & "?startDt=2020-01-01&endDt=currentDate",
I have used the below formula to get the date and then passed it as a parameter in API, But Thank you for your support and suggestion
currentDate = Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"),
let
currentDate = Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"),
Source = Json.Document(Web.Contents("https://cs-intmgroservices.io/intmgmtsvc/report/nReport" & "?startDt=2020-01-01&endDt=currentDate",
@Mahesh0016 , Thank you for replying.
I I, have used your suggested function in the power query, but i am getting an error
@Please Try this. Thank You.
endDt
= #date(
Date.Year(DateTime.Date(DateTime.LocalNow())),
Date.Month(DateTime.Date(DateTime.LocalNow())),
Date.Day(DateTime.Date(DateTime.LocalNow()))
)
I have used your suggested function in the power query, but still I am getting an error
@Madhu155154 please try this one.
endDt=
Date.ToText(#date(Date.Year(DateTime.Date(DateTime.LocalNow())), Date.Month(DateTime.Date(DateTime.LocalNow())), Date.Day(DateTime.Date(DateTime.LocalNow()))), [Format="YYYY-MM-DD", Culture="en-US"])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |