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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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())

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())

Anonymous
Not applicable

@amitchandak 

Legend 🙂

Deevs_411470_0-1634702170758.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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