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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DeEviloN
Helper III
Helper III

maximum revenue

help me please. I have a list of organizations from the beginning of the year and their revenue, I need to show the maximum monthly revenue from the selected organization. Let's say I calculated the revenue for the current month, but I want to compare it with the maximum revenue of this organization. For example, in the current month, the revenue is 15, and the maximum revenue they had in February was 30, how to display it?

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @DeEviloN ,

 

Here I create a easy sample to have a test.

RicoZhou_0-1662364442554.png

Revenue by Month = 
CALCULATE(SUM('Table'[Revenue]),ALLEXCEPT('Table','Table'[Year],'Table'[Month]))
Current Month Revenue = 
CALCULATE([Revenue by Month],FILTER(ALL('Table'),'Table'[Year] = YEAR(TODAY())&&'Table'[Month] = MONTH(TODAY())))
Max Month Revenue = 
MAXX(FILTER(ALL('Table'),'Table'[Year] = YEAR(TODAY())),[Revenue by Month])

Result is as below.

RicoZhou_1-1662364507841.png

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

4 REPLIES 4
v-rzhou-msft
Community Support
Community Support

Hi @DeEviloN ,

 

Here I create a easy sample to have a test.

RicoZhou_0-1662364442554.png

Revenue by Month = 
CALCULATE(SUM('Table'[Revenue]),ALLEXCEPT('Table','Table'[Year],'Table'[Month]))
Current Month Revenue = 
CALCULATE([Revenue by Month],FILTER(ALL('Table'),'Table'[Year] = YEAR(TODAY())&&'Table'[Month] = MONTH(TODAY())))
Max Month Revenue = 
MAXX(FILTER(ALL('Table'),'Table'[Year] = YEAR(TODAY())),[Revenue by Month])

Result is as below.

RicoZhou_1-1662364507841.png

 

Best Regards,
Rico Zhou

 

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

 

DeEviloN
Helper III
Helper III

DeEviloN_0-1661935550316.png

 

DeEviloN
Helper III
Helper III

Shows this month's revenue, not the maximum

DeEviloN_0-1661933825440.png

 

amitchandak
Super User
Super User

@DeEviloN ,

 

calculate( Maxx(values('Date'[Month Year]) , [Revenue measure]), filter(allselected(Table[Organzation]) , Table[Organzation] = max(Table[Organzation]) ) )

 

or

 


calculate( Maxx(values('Date'[Month Year]) , [Revenue measure]), filter(all(Table[Organzation]) , Table[Organzation] = max(Table[Organzation]) ) )

 

or

 


calculate( Maxx(values('Date'[Month Year]) , [Revenue measure]), filter(allselected(Table) , Table[Organzation] = max(Table[Organzation]) ) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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