Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Determine maximum row of database

Hi,

 

I have the following table. Machine status color is a calculated column. Now I need only the first row of the table to be displayed, which is the maximum of the end time. How can I achieve this? Problem is integrating measure into a calculated column. Please reply a.s.a.p. Thanks in advance!

 

9 Replies

  • RobbeVL's avatar
    RobbeVL
    Icon for Impactful Individual rankImpactful Individual

    Hi there,

     

    You could just filter your visual like this:

     

     

    hope this helps ?

    • Anonymous's avatar
      Anonymous
      Not applicable
      Table is empty after this action! Alternative solution???
      • RobbeVL's avatar
        RobbeVL
        Icon for Impactful Individual rankImpactful Individual

        Add a filter, is not blank ? 

  • Hi,

    The first row in your image is not the max of the End time.  Infact it is the minimum.  I am not clear with your end result.

  • v-diye-msft's avatar
    v-diye-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    You could probably try the RANKX function.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, I do not get the required results with above mentioned solutions. To be more specific: I need a table which represents the latest end time and machine status per machine ID. How can I achieve this?

      • mussaenda's avatar
        mussaenda
        Icon for Community Champion rankCommunity Champion

        What will be the final output?

        According to my understanding,

        This is the what you need.

        If not, Please provide a sample output.