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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi!
I am currently working in the query editor with some 'date from' 'date to' data which records activities that people have to do in the future in hours. A sample for the data is as follows:
The data in this format is hard to use, so based on reccomendations from a different forum, I added a custom column which splits up the Date from, Date to columns into separate days as follows (see Date column):
This custom column is added by clicking on "Add Column" and then "Custom Column" in the query editor, with the code: ={Number.From([Date from])..Number.From([Date to])}
This works fine, however as can be seen above, the Hours column is simply repeated and is not divided by the number of new rows. Since the Dates have been split up, the hours must be divided. This is the desired result:
I can't seem to figure out a way to do this. Thank you for helping me out 🙂
Solved! Go to Solution.
you could create a calculated colunm to divide the hours by a count of the activity id
Proud to be a Super User!
you could create a calculated colunm to divide the hours by a count of the activity id
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!