Forum Discussion
Transform a static calendar table imported from Excel into a dynamic one
- 3 years ago
Anonymous,
Okay here is what you can do:
1. Prepare your fact table with Dates, something like I have in my example:2. Retrieve Min and Max (Start and End dates) in numeric format:
3. Create a table (Calendar), where you have Start Date and End Date in two columns:
4. Create new column with all dates between those two dates:
5. Clean the table a bit with removing extra tables:
I can't attach file here, but in case you want - send me PM and I can send you there.
Thanks for your reply, AlB .
Basically, my reply to Migasuke applies to your comment as well.
But in addition, I am much interested in your second option, because that might lead to the solution: creating a dynamic date table in Power Query. How do I do that? Power Query does not accept DAX, only M.
Anonymous
1. I do not see how it does. For the first option I am talking about making the changes in Power Query, not in DAX
2. First Google hit:
https://gorilla.bi/power-query/date-table/
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |