Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Display column and row values for max

Hi, 

 

I have a dataset that looks something like this (just a lot bigger and with columns from 1 o'clock till 24). 

I know I can add a column for rowwise max values in query. But How do I then find the corresponding timestamp for that row? And how do I display it in a card or something like that in desktop? 

 

Thanks! 

 

DatoKl. 1Kl. 2Kl. 3Kl. 4
01.01.2022106,20100,20107,40110,40
02.01.2022114,60114,00111,60103,80
03.01.2022167,40118,80109,80120,60
04.01.2022136,80120,60120,00123,60
05.01.2022152,40134,40132,60138,00
06.01.2022150,00130,80131,40152,40
07.01.2022144,00130,80128,40136,80

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks! That worked! 🙂 

     

    Sorry for the late reply..!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous ,

       

      You can duplicate the table --> select [Kl. 1] to [Kl. 24] and unpivot the columns --> select [Dato] and Grouping -->  Merge Query --> Expand Columns.

      Result:

      Such data is well reflected in the change of maximum values by creating line charts in the desktop.

       

      Best Regards,
      Gao

      Community Support Team

       

      If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

      How to get your questions answered quickly --  How to provide sample data in the Power BI Forum