Forum Discussion
extend existing date range
- 6 years ago
Hi Anonymous ,
Yes the data is auto updated in your case as it is coming from "Raised On" date.
You can try creating a calendar table in Power BI. Refer following link:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
Anonymous open query edit and click on date table and then click on advanced editor, if you don't see this in query editor then click on table and see if there is a dax expression in formula bar and that will tell you us if it is created in PQ or in DAX and from there it will be easy to extend it.
Thanks Pragati11 . I clicked on the advance editor and was able to get the code below :
I can see there is MinDate2 = List.Min(IncidentRawData[Raised on] and the MaxDate2 below it.
Does this mean that the date range auto populates when the data is refreshed and the "Raised On" date is extended?
Could you also advise how it would be possible to recreate this table to allow me to use this for other dashboards I am building?
- parry2k6 years agoSuper User
Anonymous Yes that seems correct, it will grow if Min and Max dates are calculated from another source. so it should work and auto extends as new data comes in.
I would 💖 Kudos 🙂 if my solution helped.
- Pragati116 years agoSuper User
Hi Anonymous ,
Yes the data is auto updated in your case as it is coming from "Raised On" date.
You can try creating a calendar table in Power BI. Refer following link:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂
Thanks,
Pragati
- parry2k6 years agoSuper User
Pragati11 I do not agree here with you to add a new calendar table using DAX is there is already one. Where do you think it is going to add value by adding a new calendar using DAX, especially if existing is already working and everything is developed on top of it? Just curious about your thought process.
- Anonymous6 years agoNot applicableThank you guys!
- Anonymous6 years agoNot applicable
Thank you guys!