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

pull the minimum and maximum value

Dear all,

I need to create two measures to retrieve the minimum and maximum value and add it to the visual below.

As I use the slicer to filter Area, the visual should dynamically pull the minimum and maximum monthly values.

As an example, I want the minimum measure to be 386,172.62 and the maximum to be 1,166321.67.image.png

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Deevs_411470 ,

Suppose you have measured actual sales

calculate(minx(values(Table[Month]), [Real Sales]), allselected())

calculate(maxx(values(Table[Month]), [Real Sales]), allselected())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

4 REPLIES 4
VahidDM
Super User
Super User

Hi @Anonymous 

 

Try these measures:

 

Maximum =
CALCULATE ( MAX ( [Actual Sales] ), REMOVEFILTERS ( table[Month Name] ) )

Minimum =
CALCULATE ( MIN ( [Actual Sales] ), REMOVEFILTERS ( table[Month Name] ) )

 

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

Appreciate your Kudos!!

 

Anonymous
Not applicable

@VahidDM 

 

I don't think that measure is working 

 

Deevs_411470_0-1634709847731.png

 

amitchandak
Super User
Super User

@Deevs_411470 ,

Suppose you have measured actual sales

calculate(minx(values(Table[Month]), [Real Sales]), allselected())

calculate(maxx(values(Table[Month]), [Real Sales]), allselected())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

Legend 🙂

Deevs_411470_0-1634702170758.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