Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
petrkos
Regular Visitor

Display maximum value from 4 collums

Hi, i would like ask your for help

 

data looks like this

6.JPG

 

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

 

1.JPG2.JPG4.JPG3.JPG

 

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.
5.JPG
 
thanks

 

2 REPLIES 2
v-henryk-mstf
Community Support
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]
)

vhenrykmstf_0-1665390311005.png

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.

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

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.