Forum Discussion

petrkos's avatar
petrkos
Regular Visitor
3 years ago

Display maximum value from 4 collums

Hi, i would like ask your for help

 

data looks like this

 

I would like graphic display quarter of hourly maximum electriccity consumption, but i have problem that its not show me correct.

 

 

sometimes its good and sometimes is wrong. check the screens.

 

i used this measure code

 

Max of more than 2 columns Measure =
MAXX(
    {
        MAX('Sheet1'[1.]),
        MAX('Sheet1'[2.]),
        MAX('Sheet1'[3.]),
        MAX('Sheet1'[4.])
       },
    [Value]
)
 
also i would like display it in some graphic where maximum is 500. for example check screen.
 
thanks

 

2 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi petrkos ,

     

    My test return correct answer, try formula like below:

    Measure:

    Result_M =
    MAXX (
        {
            MAX ( 'Table'[Value1] ),
            MAX ( 'Table'[Value2] ),
            MAX ( 'Table'[Value3] ),
            MAX ( 'Table'[Value4] )
        },
        [Value]
    )

    Calculated column:

    Result =
    MAXX (
        { 'Table'[Value1], 'Table'[Value2], 'Table'[Value3], 'Table'[Value4] },
        [Value]
    )

    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • petrkos's avatar
      petrkos
      Regular Visitor

      Hi,

      sorry for late answer i was very bussy

       

      i will describe my problem more

       

      Data table contain maximum electriccity consumption every 15 minutes per hour. (1,2,3,4) the last column is average consumption per hour. this measure repeat all day.

       

      So what i want:

       

      I want show data for every hour with average value, and after click on certein hour i want display the maximum consumption.

       

      table for example:

      1/4 of hour/
      Day hour:
      1.2.3.4.AVG
      [kWh]
      00 - 017076747674
      01 - 027874747475
      02 - 037274747273
      03 - 047472727273
      04 - 057270727071
      05 - 067072707271
      06 - 077074747273
      07 - 087268727271
      08 - 097272707071
      09 - 107066707270
      10 - 117472727273
      11 - 127070687270
      12 - 137472727674
      13 - 147474122222123
      14 - 15180118116120134
      15 - 1682106948492
      16 - 178280828282
      17 - 187476747475
      18 - 197274807475
      19 - 207872788077
      20 - 217682787879
      21 - 227878747877
      22 - 237478767275
      23 - 007274747674