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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

maximum value from table

Hi all,

can anyone help me, i have been trying to extract the maximum value from this table, yet i was unable to do so.

Is there any tricks or code that could help ?

Thanks

sabrina_az_0-1639649472540.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can try to update the formula of measure [maxxx] as below and check whether you can get the correct value. Please find the details in the attachment.

 

maxxx = 
CALCULATE (
    MAX ( 'energykwh energydata'[energydata_value] ),
    ALLSELECTED ( 'energykwh energydata' )
)

 

yingyinr_0-1639982964829.png

Best Regards

View solution in original post

9 REPLIES 9
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

You can create a measure with below code:-

 

measure = Max(table[energydata_value])

 

If you could share sample data in text formate with expected output then we can help you with more specific answer. 🙂

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi Samarth,

I am not sure how to send the sample data in text format as im new to this but i will try to put it below.

MonthDayTimeEnergydata_Value
October3112.00 am8949461.19
October3112.30 am8949206.22
October311.00 am6732062.06
October311.30 am6731925.04
October312.00 am3475019.96

 

Hope this is right.

Thank you

Okay in this case you can use above code and you will get output like this:-

Samarth_18_0-1639655943663.png

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

with a specific date, its not detecting the maximum value. Is there other way i could do this?

sabrina_az_0-1639667329892.png

Hi @Syndicate_Admin It gets filtered if you select any value and it gives max of selected date. If you need max irrespective of selected date then you can write measure as below:-

measure = calculate(Max(table[energydata_value]),All(table))

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

I still cant get pass through with that coding. May i know what i should put as table?

sabrina_az_1-1639669716453.png

The highlighted value is the maximum value while the blue pointed pen is max value, and its not the same.

Anonymous
Not applicable

Hi @Anonymous ,

You can try to update the formula of measure [maxxx] as below and check whether you can get the correct value. Please find the details in the attachment.

 

maxxx = 
CALCULATE (
    MAX ( 'energykwh energydata'[energydata_value] ),
    ALLSELECTED ( 'energykwh energydata' )
)

 

yingyinr_0-1639982964829.png

Best Regards

@Anonymous , could you please elaborate what should be expected output?

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

The maximum number is pointed with blue arrow but with the code, i obtained value highlighted.

hmm

sabrina_az_1-1639654136543.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors