Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
Need help
I have net login without aux in my excel file >> when i am using it after uploading in Power BI, It is not allowing me to calculate average, both the screenshot are attached for your reference.
I guess i need to do something in Transform Data. Currently its in time format
Solved! Go to Solution.
Thanks,
I got my answer with below mentioned syntax
Thanks,
I got my answer with below mentioned syntax
Hi @sd0021781 Set the data type to Time. See image below:
Convert time to decimal either using power query or dax. I have used dax calculated column. See image below:
Write measure to find out average of the given timestamps. Try this:
AverageTimeDecimal =
VAR ATD = AVERAGEX(DateTable, DateTable[TimeInDecimal])
VAR AvgHour = INT(ATD)
VAR AvgMinute = INT((ATD - AvgHour) * 60)
VAR AvgSecond = ROUND((ATD - AvgHour - AvgMinute/60) * 3600, 0)
VAR Time = TIME(AvgHour, AvgMinute, AvgSecond)
VAR Result = FORMAT(Time, "hh:mm:ss AM/PM")
RETURN
ResultYou will get your desired output. See image below:
Hope this helps!!
If this solved your problem, please accept it as a solution!!
Best Regards,
Shahariar Hafiz
Thanks for your revert.
Please find below the error i can see.
Remove extra brackets after AM/PM
removed the extra bracket. still their is no change
again remove extra bracket ] in first line after 'One View Noida'[Net Login Without Aux]
You formula for measure may not work. As I can see that you have used original time column inside averagex. You first need to create a column to convert "Net Login without Aux] to TimeinDecimal.
Follow steps I have provided. To create column, see the image below:
first click number 1 and then write formula in number 2. exactly same just need to change column name.
Hope this helps!!
Not it is showing Sytax Error
Please first create a calculated column in your orginal data set to convert time into decimal format. Then create measure with the code I have provided.
I don't see you are returning the result.
add last line
return
result
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 67 | |
| 48 | |
| 46 | |
| 41 | |
| 39 |