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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.