The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have data from a Service Desk system and building a dashboard for management and need average time.
i have created this mesure to convert the time to "hh:mm:ss"
Solved! Go to Solution.
Hi, @Dolf
Based on your information, i created a table:
Create a new Measure , then use the following DAX:
Average First Response Time =
VAR AvgTimeInBhrs = AVERAGE('Table'[First Response time])
RETURN
TIME(
DIVIDE(AvgTimeInBhrs, 3600000),
DIVIDE(MOD(AvgTimeInBhrs, 3600000), 60000),
DIVIDE(MOD(AvgTimeInBhrs, 60000), 1000)
)
Change its time type to hh:mm:ss
This measure is then placed in the card view, and when a piece of data is selected, the card will display the corresponding time, the following is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Dolf
Based on your information, i created a table:
Create a new Measure , then use the following DAX:
Average First Response Time =
VAR AvgTimeInBhrs = AVERAGE('Table'[First Response time])
RETURN
TIME(
DIVIDE(AvgTimeInBhrs, 3600000),
DIVIDE(MOD(AvgTimeInBhrs, 3600000), 60000),
DIVIDE(MOD(AvgTimeInBhrs, 60000), 1000)
)
Change its time type to hh:mm:ss
This measure is then placed in the card view, and when a piece of data is selected, the card will display the corresponding time, the following is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I have created a sample table like below:
Then created below measure:
I can see the Agent wise average.
If this resolves your problem then please mark this as solution, Thanks!
Now put that on a "Card", it does not work.
I have created this measure:
Hi,
First you need to have average of all the rows then try to convert into hh:mm:ss. Hence in your measure, create a variable like VAR _avgTime = AVERAGE (column_name). Then try to extract Hour, Min, Sec from there.
If this resolves your problem then please mark it as solution, Thanks!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
112 | |
69 | |
46 | |
43 |
User | Count |
---|---|
186 | |
85 | |
76 | |
74 | |
56 |