Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Solved! Go to Solution.
Hey,
maybe the phrase "after expanding ..." from my 1st post has been too short 🙂
Expand the List to new rows in your new column by hitting the "double arrow" icon.
After this you will be able to convert the data type of the column into the data type date
Regards,
Tom
Hey,
here you will find a little pbix file that contains some sample data ...
The data looks like this:
Basically it creates a list of dates using the PowerQuery function List.Dates inside the Custom Column formula:
List.Dates( [Date Start] , Number.From([Date End])-Number.From([Date Start])+1 , #duration(1,0,0,0) )
After expanding the list to rows the table will look like this:
This allows to create a matrix visual with the Room Number on columns and the new date column on rows like so:
Please be aware that you have to prepare for missing data in the Date End column, maybe assuming a stay that projects 30day into the future like so "if [Date End] is null then ..."
Hopefully this is what you are looking for.
Regards,
Tom
Hello Tom
It works great to create list field, but it has been automaticaly convert in text...i cannot convert back to date and the link with a calendar table failed, because calendar stays in date format
Do you already have such an issue please ?
Regards
Hey,
using my pbix i have no problem to convert the the text field to data type date, neither using Power Query nor DAX.
I recommend do the conversion already in Power Query ... mark the new column and select
Menu: Transform --> Date & Time column --> Date only
Maybe you will receive errors, but here you the possibility to investigate further.
Hopefully this gets you started.
Regards,
Tom
Hello,
I really don't know why transform option unavailable
Look at the screen attached if you have any idea it will be a great help
Regards
Regis
Hey,
maybe the phrase "after expanding ..." from my 1st post has been too short 🙂
Expand the List to new rows in your new column by hitting the "double arrow" icon.
After this you will be able to convert the data type of the column into the data type date
Regards,
Tom
Thnaks a lot Tom, you totally right abou expansion option
User | Count |
---|---|
109 | |
101 | |
100 | |
69 | |
34 |
User | Count |
---|---|
146 | |
141 | |
116 | |
98 | |
52 |