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
selected_
Helper IV
Helper IV

Possible to recalculate a measure to another measure again?

If I have a measure already that name Selling Price, the measure selling price look like this

AVERAGE('Products'[UnitPrice]) * ([Total Discount])
 
can I then create a new measure and calculate MAX and MIN for the measure?
 
I tried with this  MAX of Selling price = CALCULATE(MAX([Selling Price])) 
 
but got error.
1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @selected_

 

Yes,you can create 2 measures similarly as below:

Min sales price = MinX(VALUES('Table'[UnitPrice]),'Table'[Selling Price])
Max sales price = MAXX(VALUES('Table'[UnitPrice]),'Table'[Selling Price])

And you will see:

Annotation 2020-09-11 101643.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @selected_

 

Yes,you can create 2 measures similarly as below:

Min sales price = MinX(VALUES('Table'[UnitPrice]),'Table'[Selling Price])
Max sales price = MAXX(VALUES('Table'[UnitPrice]),'Table'[Selling Price])

And you will see:

Annotation 2020-09-11 101643.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Greg_Deckler
Super User
Super User

@selected_ This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.