The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
In the query editor please can you tell me how to automatically create a list of all calendar dates?
Thanks,
CM
Solved! Go to Solution.
Hi @CloudMonkey
Please try these steps
https://powerpivotpro.com/2015/02/create-a-custom-calendar-in-power-query/
Power Query can't automatically detect the date range within data model to generate list of dates, which means it can only work as CALENDAR() function so that you have to manually specify the start and end dates to create this calendar table.
I suggest you create a calculated table with Power Query, group records with Max and Min aggregation, please refer to threads below:
Then use Power Query to create a custom calendar based on the calculated table with StartDate and EndDate as Phil's provided article suggested.
Regards,
Power Query can't automatically detect the date range within data model to generate list of dates, which means it can only work as CALENDAR() function so that you have to manually specify the start and end dates to create this calendar table.
I suggest you create a calculated table with Power Query, group records with Max and Min aggregation, please refer to threads below:
Then use Power Query to create a custom calendar based on the calculated table with StartDate and EndDate as Phil's provided article suggested.
Regards,
Hi @CloudMonkey
Please try these steps
https://powerpivotpro.com/2015/02/create-a-custom-calendar-in-power-query/
User | Count |
---|---|
65 | |
62 | |
59 | |
54 | |
28 |
User | Count |
---|---|
181 | |
82 | |
66 | |
47 | |
44 |