Ask a questionAsk a question
 

AnswerCalculate Times in Measures?

  • Friday, November 06, 2009 8:50 AMAkbaJen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I have a question. Is it possible to display the measure over a percental ammount in time ? I have all the Start and End Times of each state in my database. So i want to display the state in relation to ther percentage of time ammount.

    For Example i have 10 hours day:

    Machine running: 5 hours
    Machine not running: 3 hours
    Machine in maintainance: 2 hours


    so i get:
    Machine running: 50%
    Machine not running: 30%
    Machine in maintainance: 20%

    I hope my problem is understandable.

    Thank you

Answers

  • Saturday, November 07, 2009 12:20 AMDarren GosbellMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    If you have separate records for the start and end of each event you are going to probably have a hard time using SSAS over that format. 

    With the example that you have given I think you will need to join the start and end into a single record, then you can easily calculate the duration within the one record. You will then have the duration for a given machine on a given day and can compare that to the available hours or even to the sum of all the hours for that machine on that day.
    http://geekswithblogs.net/darrengosbell - please mark correct answers

All Replies