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

Max , minimum and average in a calculated column

Hi,

 

I have data in the below format,

 

Cost

100

2900

300

 

I need to create a column in such a way that, it should tell me the minimum, maximum and average of the cost column.

eg;

 

Cost    Custom_Column2

100            Minimum

2900          Maximum

300

 

How can I achieve this?

1 ACCEPTED SOLUTION
jppv20
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Not sure if I understand the question correctly, but you can try this:

Column = IF('Table'[Cost]=MIN('Table'[Cost]),"Minimum",IF('Table'[Cost]=MAX('Table'[Cost]),"Maximum",IF('Table'[Cost]=AVERAGE('Table'[Cost]),"Average",BLANK())))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
jppv20
Solution Sage
Solution Sage

Hi @Anonymous ,

 

Not sure if I understand the question correctly, but you can try this:

Column = IF('Table'[Cost]=MIN('Table'[Cost]),"Minimum",IF('Table'[Cost]=MAX('Table'[Cost]),"Maximum",IF('Table'[Cost]=AVERAGE('Table'[Cost]),"Average",BLANK())))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.
PhilipTreacy
Super User
Super User

Hi @Anonymous 

You sure you need this in a column, rather than using measures?

For example

 

Minimum = MIN('Table'[Cost])
Maximum = MAX('Table'[Cost])
Average = AVERAGE('Table'[Cost])

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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