Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi All,
We are connecting to JIRA data, which is working fine with the following code:
What I would like to reach is to have a dynamic date range, and have the data from the first day of the current year untill the current data.
I have tried to put after the "from" and after the "to" the following:
content=
"{
""from"": "&Date.ToText(Date.From( Date.StartOfYear(DateTime.Date(DateTime.FixedLocalNow()) )),"yyyy-MM-ddT00:00:00Z" )&",
""to"":"&Date.ToText(Date.From( Date.EndOfMonth(DateTime.Date(DateTime.LocalNow()) )),"yyyy-MM-ddT00:00:00Z")&"
}",
But unfortunately it did not work, and I am not too good at M code.
Can you please advise what should I do?
Thanks in advance!
Dear @amitchandak ,
Thank you very much for the articles, I read them but honestly I do not understand still how I could implement in my exact example the dynamic date solution:(
Thank you again
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 20 | |
| 17 | |
| 12 |
| User | Count |
|---|---|
| 64 | |
| 55 | |
| 42 | |
| 38 | |
| 30 |