Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have data and am looking to change the data based upon the hour ending value. So if the date is 1/25/2019 with 12:00:00 AM Hour Ending (24), this should be 1/26/2019 00:00:00. How can transform the data in this way to be able to get this result? All help would be great! Thanks!
Solved! Go to Solution.
hi @Anonymous
You could use this way in edit queries as below:
Step1:
Add a custom column by this formula
if [Hour Ending] = 24 then Date.AddDays([Date], 1) else [Date]
Step2:
Remove "Date" column and rename the new custom column as "Date"
Result:
here is sample pbix file, please try it.
Regards,
Lin
hi @Anonymous
You could use this way in edit queries as below:
Step1:
Add a custom column by this formula
if [Hour Ending] = 24 then Date.AddDays([Date], 1) else [Date]
Step2:
Remove "Date" column and rename the new custom column as "Date"
Result:
here is sample pbix file, please try it.
Regards,
Lin
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 38 | |
| 31 | |
| 30 |