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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DR2022
Helper I
Helper I

Maximum YoY% or MoM%

Hi! How can a measure be made that returns the maximum YoY% or MoM% measure value?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DR2022 , Assume you  already have YOY% and MOM% measures

 

Max([YOY%], [MOM%])

 

or

 

sumx(Values('Date'[Month Year]), calculate(if([YOY%]> [MOM%],[YOY%], [MOM%])) )

 

or

sumx(Values('Date'[Month Year]), calculate(Max([YOY%], [MOM%])) )

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @DR2022 ,

 

Any updates?

Sorry for that the information you have provided is not making the problem clear to me. 

You may refer to the blogs to know

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community


Best Regards,
Eyelyn Qin

Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@DR2022 , Assume you  already have YOY% and MOM% measures

 

Max([YOY%], [MOM%])

 

or

 

sumx(Values('Date'[Month Year]), calculate(if([YOY%]> [MOM%],[YOY%], [MOM%])) )

 

or

sumx(Values('Date'[Month Year]), calculate(Max([YOY%], [MOM%])) )

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

But it shouldn't be for example:

CALCULATE(MAX([Sales YoY%]), Date[YearDate] ?

I'm sorry that I don't understand.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.