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
I have written the following DAX but I can't figure out what I follow the Return with to provide the minutes and seconds as (nn:ss). I need the results to go into a column chart.
code:
Solved! Go to Solution.
Hi @vaaacadamsp ,
According your provided ,test the below:
Current Weekly Avg =
VAR AvgTime = CALCULATE(AVERAGE(MIM[value_seconds]),
FILTER(MIM,MIM[u_week_number] =
WEEKNUM(TODAY(),2)-1))
VAR MinTotal = AvgTime/60
VAR MinInt = TRUNC(MinTotal)
VAR SecTotal = ROUND((MinTotal - MinInt)*60,0)
RETURN MinInt& ":" & SecTotal
Did I answer your question? Mark my post as a solution!And if question still not work ,pls share your sample data.
Best Regards
Lucien
Hi @vaaacadamsp ,
According your provided ,test the below:
Current Weekly Avg =
VAR AvgTime = CALCULATE(AVERAGE(MIM[value_seconds]),
FILTER(MIM,MIM[u_week_number] =
WEEKNUM(TODAY(),2)-1))
VAR MinTotal = AvgTime/60
VAR MinInt = TRUNC(MinTotal)
VAR SecTotal = ROUND((MinTotal - MinInt)*60,0)
RETURN MinInt& ":" & SecTotal
Did I answer your question? Mark my post as a solution!And if question still not work ,pls share your sample data.
Best Regards
Lucien
HI @vaaacadamsp
this could help you
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
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.