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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Jdokken
Helper III
Helper III

Max Forecast for ALL periods by Project

Hello- 

 

I'm trying to find a calculation that will look through ALL periods for each project (ignoring filters on the visual) and bring back the MAX Group Margin Fcst for each project so that I can then divide it by the most current Group Margin Fcst. Here's what I have so far and it's just bringing back the Group Margin Forecast.  In this example it should be bringing back 4,910 in the -GMF Change Max column. 

 

Jdokken_0-1629918224397.png

 

 

 

Project NameProject #GL PeriodGroup Margin FcstGMF Change Max
Village141914519-Nov         4,910         4,910
Village141914519-Dec         4,910         4,910
Village141914520-Jan         4,910         4,910
Village141914520-Feb         4,910         4,910
Village141914520-Mar         4,910         4,910
Village141914520-Apr         4,637         4,637
Village141914520-May         4,637         4,637
Village141914520-Jun         4,644         4,644
Village141914520-Jul         4,646         4,646
Village141914520-Aug         4,646         4,646
Village141914520-Sep         3,354         3,354
Village141914520-Oct         3,265         3,265
Village141914520-Nov         1,975         1,975
Village141914520-Dec         1,932         1,932
Village141914521-Jan         1,932         1,932
Village141914521-Feb         1,932         1,932
Village141914521-Mar         1,664         1,664
Village141914521-Apr         1,096         1,096
Village141914521-May            439            439
Village141914521-Jun            306            306
1 ACCEPTED SOLUTION

Hey @Jdokken ,

 

yeah, makes it easier when you mention all the details.

In this case try it with an ALLEXCEPT:

GMF Change Max =
MAXX(
    ALLEXCEPT( 'Internal Financial Metrics', 'Internal Financial Metrics'[Project #] ),
    'Internal Financial Metrics'[Group Margin Fcst]
)

 

Like this it will return the MAX per Project number when the filter context contains a project number.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

4 REPLIES 4
selimovd
Super User
Super User

Hey @Jdokken ,

 

the combination of CALCULATE and MAXX doesn't work like this. But you can just use the MAXX of the complete table. Try the following approach:

GMF Change Max =
MAXX(
    ALL( 'Internal Financial Metrics' ),
    'Internal Financial Metrics'[Group Margin Fcst]
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

@selimovd Thanks for your response Denis. I think we are missing the Project # from this calculation (Which I don't think I identified clearly above) as this calcuation brings back the max Group Margin forecast in the whole data set vs by Project. 

Hey @Jdokken ,

 

yeah, makes it easier when you mention all the details.

In this case try it with an ALLEXCEPT:

GMF Change Max =
MAXX(
    ALLEXCEPT( 'Internal Financial Metrics', 'Internal Financial Metrics'[Project #] ),
    'Internal Financial Metrics'[Group Margin Fcst]
)

 

Like this it will return the MAX per Project number when the filter context contains a project number.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

@selimovd Great, this works for most of my projects.  We break down certain projects even further and then on each page we choose which "View" we want to see and it grabs the corresponding rows for those projects. So I need to figure out how to add that filter onto this measure. Those filters are in a different table but joined to the "Internal Financial Metrics" table. 

Jdokken_0-1630343016452.png

Jdokken_1-1630343192392.png

 

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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