Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 158 | |
| 132 | |
| 116 | |
| 79 | |
| 54 |