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! Request now
Hi @Anonymous ,
To convert Hours to Days, you can simply divide your field by 24.
hours_to_days = [your hour fileld]/24
Thanks,
Pragati
Hi @Anonymous ,
Try the following dax to create new column:
day1 = 'Table'[Hour]/24day2 = int('Table'[Hour]/24) & " Days, " & mod(INT('Table'[Hour]),24) & " hours"
Final you will get:
Wish it is helpful for you!
Best Regards
Lucien
Hi @Anonymous ,
According picture,I could see the error:
In dax :
and: &&
or: ||
if a and b :if(a&&b,,)
if a or b :if(a||b,,)
And you could create a new case ,then provide details pbix file ,technical support will follow up on your questions after the case created.
Best Regards
Lucien
Hi @Anonymous ,
Try the following dax to create new column:
day1 = 'Table'[Hour]/24day2 = int('Table'[Hour]/24) & " Days, " & mod(INT('Table'[Hour]),24) & " hours"
Final you will get:
Wish it is helpful for you!
Best Regards
Lucien
will you please help to know what's wrong with this Dax?
Thank you
Astha Nigam
Thank you for your help. It actually worked exactly what I wanted.
Hi @Anonymous ,
To convert Hours to Days, you can simply divide your field by 24.
hours_to_days = [your hour fileld]/24
Thanks,
Pragati
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.