How to transform number based on conditions

%3CLINGO-SUB%20id%3D%22lingo-sub-952422%22%20slang%3D%22en-US%22%3EHow%20to%20transform%20number%20based%20on%20conditions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-952422%22%20slang%3D%22en-US%22%3E%3CDIV%3EHello%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EDescription%3A%20We%20have%20availability%20tests%20configured%20for%20specific%20URLs%20in%20app%20insights.%20Results%20are%20stored%20in%20log%20analytics.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EObjective%3A%20I%20want%20to%20create%20custom%20dashboard%20based%20on%20average%20duration%20time.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIssue%3A%20duration%20time%20shows%20as%20numbers%2C%20for%20example%20300ms%20is%20300.0%20and%2017s%20300ms%20shows%20as%2017%2C300.0%20.%20I%20want%20to%20transform%2Fchange%20the%20number%20to%20be%20shown%20as%2017s300ms%20or%20300ms%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHow%20can%20I%20do%20that%3F%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-952422%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%20Insights%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor
Hello,
 
Description: We have availability tests configured for specific URLs in app insights. Results are stored in log analytics.
 
Objective: I want to create custom dashboard based on average duration time.
 
Issue: duration time shows as numbers, for example 300ms is 300.0 and 17s 300ms shows as 17,300.0 . I want to transform/change the number to be shown as 17s300ms or 300ms
 
How can I do that?