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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.