Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Report on EazyBI that shows how long an issue was in a state, expressed in hours, minutes and second

Hi community!

First of all a greeting

I hope you can help me


I have a requirement to make a report in EazyBI that shows me how long an issue was in a state, expressed in hours, minutes and seconds.

 

I could make the report, but only expreeed in hours and minutes, but I can't find a way to express the SECONDS

 

Any ideas?

 

PD: To express it in hours and minutes, I did the following:

 

[Measures].[Days in transition status]*24*60

 

Thank you.

1 answer

Hi Saul!

You are correct, default eazyBI formatting offers the minute formatting with ##h ##m assuming the number is in minutes. Additionally, eazyBI imports the Days in transition status with a scale of four which gives the precision down to minutes (one second would be ~0.00001 from a day).

But, if having approximately 10s possible error is OK for you, it is possible to construct a string (this will not be drillable measure, but number converted to a string) with MDX that would return a result in the format of #d #h #m #s. Try the following formula for that

(Case
When [Measures].[Days in transition status]>=1
Then Format(Int([Measures].[Days in transition status])
,"0d ") -- int returns the whole days
Else ""
End)

||

(Case
When [Measures].[Days in transition status]>0.0417
Then Format(Int(([Measures].[Days in transition status]
- Int([Measures].[Days in transition status])) *24)
,"0h ") -- get the whole hours by substracting the whole days
Else ""
End)

||

(Case
When [Measures].[Days in transition status]>0.00069
Then Format(Int(([Measures].[Days in transition status] *24
- Int([Measures].[Days in transition status] *24 )) *60)
,"00m ") -- substract the whole hours to get minutes
Else ""
End)

||

(Case
When [Measures].[Days in transition status]>0.00001
Then Format(([Measures].[Days in transition status] *24 *60
- Int([Measures].[Days in transition status] *24 *60 )) *60
,"00s") -- substract the whole minutes to get remaining seconds
Else ""
End)

Lauma / support@eazybi.com

@Lauma Thanks for your help, it works perfect.

Like Lauma likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

129 views 3 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you