Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Solved! Go to Solution.
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' )
)
Best Regards
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
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.
| Month | Day | Time | Energydata_Value |
| October | 31 | 12.00 am | 8949461.19 |
| October | 31 | 12.30 am | 8949206.22 |
| October | 31 | 1.00 am | 6732062.06 |
| October | 31 | 1.30 am | 6731925.04 |
| October | 31 | 2.00 am | 3475019.96 |
Hope this is right.
Thank you
Okay in this case you can use above code and you will get output like this:-
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?
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
I still cant get pass through with that coding. May i know what i should put as table?
The highlighted value is the maximum value while the blue pointed pen is max value, and its not the same.
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' )
)
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.